feat: hide integration app config when using read only token
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user