fix: inbox jbuilder

This commit is contained in:
Shivam Mishra
2026-06-11 19:37:53 +05:30
parent e408b5dbbd
commit 85776ec65c
@@ -130,7 +130,6 @@ json.bot_name resource.channel.try(:bot_name) if resource.telegram?
if resource.whatsapp?
json.message_templates resource.channel.try(:message_templates)
json.provider_config resource.channel.try(:provider_config) if Current.account_user&.administrator? && @access_token&.scope != 'read_only'
json.provider_config resource.channel.try(:provider_config) if Current.account_user&.administrator?
# Only show reauthorization for embedded signup; manual flow uses API keys, not OAuth
json.reauthorization_required(
(resource.channel.try(:provider_config) || {}).to_h['source'] == 'embedded_signup' &&