feat: hide integration app config when using read only token

This commit is contained in:
Shivam Mishra
2026-06-11 14:14:34 +05:30
parent 40432499c8
commit c633c35712
+1 -1
View File
@@ -4,7 +4,7 @@ json.description resource.description
json.short_description resource.short_description.presence
json.enabled resource.enabled?(@current_account)
if Current.account_user&.administrator?
if Current.account_user&.administrator? && @access_token&.scope != 'read_only'
json.call(resource.params, *resource.params.keys)
json.action resource.action
json.button resource.action