Chatwoot/app/policies/label_policy.rb

22 lines
333 B
Ruby
Raw Normal View History

2020-06-07 05:47:13 +00:00
class LabelPolicy < ApplicationPolicy
def index?
@account_user.administrator? || @account_user.agent?
2020-06-07 05:47:13 +00:00
end
def update?
@account_user.administrator?
end
def show?
@account_user.administrator?
end
def create?
@account_user.administrator?
end
def destroy?
@account_user.administrator?
end
2020-06-07 05:47:13 +00:00
end