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