Chatwoot/app/policies/team_policy.rb

22 lines
260 B
Ruby
Raw Normal View History

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