Chatwoot/app/policies/automation_rule_policy.rb

30 lines
430 B
Ruby
Raw Permalink Normal View History

2022-01-10 07:11:59 +00:00
class AutomationRulePolicy < ApplicationPolicy
def index?
@account_user.administrator?
end
def create?
@account_user.administrator?
end
def attach_file?
@account_user.administrator?
end
def show?
@account_user.administrator?
end
def update?
@account_user.administrator?
end
def clone?
@account_user.administrator?
end
def destroy?
@account_user.administrator?
end
2022-01-10 07:11:59 +00:00
end