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