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