Chatwoot/app/policies/agent_bot_policy.rb

22 lines
360 B
Ruby
Raw Permalink Normal View History

2021-06-01 17:04:25 +00:00
class AgentBotPolicy < ApplicationPolicy
def index?
@account_user.administrator? || @account_user.agent?
end
def update?
@account_user.administrator?
end
def show?
@account_user.administrator? || @account_user.agent?
end
def create?
@account_user.administrator?
end
def destroy?
@account_user.administrator?
end
end