Chatwoot/app/policies/campaign_policy.rb

22 lines
312 B
Ruby
Raw Permalink Normal View History

2021-04-29 16:53:32 +00:00
class CampaignPolicy < ApplicationPolicy
def index?
@account_user.administrator?
end
def update?
@account_user.administrator?
end
def show?
@account_user.administrator?
end
def create?
@account_user.administrator?
end
def destroy?
@account_user.administrator?
end
end