gitlab-org--gitlab-foss/app/policies/group_label_policy.rb
2016-10-19 14:58:24 -02:00

5 lines
137 B
Ruby

class GroupLabelPolicy < BasePolicy
def rules
can! :admin_label if Ability.allowed?(@user, :admin_label, @subject.group)
end
end