Chatwoot/app/policies/team_member_policy.rb

18 lines
238 B
Ruby
Raw Normal View History

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