gitlab-org--gitlab-foss/lib/gitlab/allowable.rb
http://jneen.net/ 846e581732 use a magic default :global symbol instead of nil
to make sure we mean the global permissions
2017-03-09 11:49:52 -08:00

7 lines
143 B
Ruby

module Gitlab
module Allowable
def can?(user, action, subject = :global)
Ability.allowed?(user, action, subject)
end
end
end