Chatwoot/app/policies/user_policy.rb

18 lines
232 B
Ruby
Raw Normal View History

class UserPolicy < ApplicationPolicy
def index?
true
end
def create?
@account_user.administrator?
end
def update?
@account_user.administrator?
end
def destroy?
@account_user.administrator?
end
end