feat: hide integration hook settings when using read only token

This commit is contained in:
Shivam Mishra
2026-05-29 16:22:13 +05:30
parent 54b86939d2
commit 4efb421800
+1 -1
View File
@@ -5,5 +5,5 @@ json.inbox resource.inbox&.slice(:id, :name)
json.account_id resource.account_id
json.hook_type resource.hook_type
json.settings resource.settings if Current.account_user&.administrator?
json.settings resource.settings if Current.account_user&.administrator? && @access_token&.scope != 'read_only'
json.reference_id resource.reference_id if Current.account_user&.administrator?