Chatwoot/app/policies/user_policy.rb
2019-10-20 14:17:26 +05:30

17 lines
208 B
Ruby

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