Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
17
research/chatwoot/app/policies/webhook_policy.rb
Normal file
17
research/chatwoot/app/policies/webhook_policy.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class WebhookPolicy < ApplicationPolicy
|
||||
def index?
|
||||
@account_user.administrator?
|
||||
end
|
||||
|
||||
def update?
|
||||
@account_user.administrator?
|
||||
end
|
||||
|
||||
def destroy?
|
||||
@account_user.administrator?
|
||||
end
|
||||
|
||||
def create?
|
||||
@account_user.administrator?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user