Chatwoot/app/policies/account_policy.rb

14 lines
213 B
Ruby
Raw 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
end