fix: Allow integration apps to be listed by an agent (#6587)

* fix: Allow integration apps to be listed by an agent

* Fix rubocop
This commit is contained in:
Pranav Raj S
2023-03-01 23:32:21 -08:00
committed by GitHub
parent 61d0a63bf7
commit 9e8eb293e9
4 changed files with 29 additions and 8 deletions

View File

@@ -4,4 +4,5 @@ json.status resource.enabled?
json.inbox resource.inbox&.slice(:id, :name)
json.account_id resource.account_id
json.hook_type resource.hook_type
json.settings resource.settings
json.settings resource.settings if Current.account_user&.administrator?