chatwoot/app/policies/hook_policy.rb
Muhsin Keloth 92fa9c4fdc
feat: Ability to improve drafts in the editor using GPT integration (#6957)
ref: https://github.com/chatwoot/chatwoot/issues/6436
fixes: https://linear.app/chatwoot/issue/CW-1552/ability-to-rephrase-text-in-the-editor-using-gpt-integration

---------

Co-authored-by: Sojan <sojan@pepalo.com>
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
2023-04-24 23:52:23 +05:30

18 lines
240 B
Ruby

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