gitlab-org--gitlab-foss/lib/gitlab/allowable.rb

8 lines
143 B
Ruby
Raw Normal View History

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