Chatwoot/app/policies/account_policy.rb

22 lines
329 B
Ruby
Raw Permalink Normal View History

class AccountPolicy < ApplicationPolicy
def show?
@account_user.administrator? || @account_user.agent?
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