feat: hide webhook secret when using read only token

This commit is contained in:
Shivam Mishra
2026-05-29 16:18:55 +05:30
parent 49ac1557c1
commit 54b86939d2
@@ -3,7 +3,7 @@ json.name webhook.name
json.url webhook.url
json.account_id webhook.account_id
json.subscriptions webhook.subscriptions
json.secret webhook.secret
json.secret webhook.secret if @access_token&.scope != 'read_only'
if webhook.inbox
json.inbox do
json.id webhook.inbox.id