summaryrefslogtreecommitdiff
path: root/app/policies/label_policy.rb
blob: 1677ad7f1bb0a9a9477f1ea70ac1785fc7f8b024 (plain)
1
2
3
4
5
6
7
class LabelPolicy < BasePolicy
  def rules
    return unless @user

    can! :admin_label if Ability.allowed?(@user, :admin_label, @subject.project)
  end
end