Chatwoot/app/policies/user_policy.rb

19 lines
209 B
Ruby
Raw Normal View History

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