mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
30 lines
465 B
Ruby
30 lines
465 B
Ruby
class AccountPolicy < ApplicationPolicy
|
|
def show?
|
|
@account_user.administrator? || @account_user.agent?
|
|
end
|
|
|
|
def cache_keys?
|
|
@account_user.administrator? || @account_user.agent?
|
|
end
|
|
|
|
def limits?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def update?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def update_active_at?
|
|
true
|
|
end
|
|
|
|
def subscription?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def checkout?
|
|
@account_user.administrator?
|
|
end
|
|
end
|