22 lines
360 B
Ruby
22 lines
360 B
Ruby
|
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
|