This commit is contained in:
gsinghpal
2026-02-23 00:32:20 -05:00
parent d6bac8e623
commit e8e554de95
549 changed files with 1330 additions and 124935 deletions

View File

@@ -11,13 +11,13 @@ class RcWidgetController(http.Controller):
@http.route('/ringcentral/widget-config', type='json', auth='user')
def widget_config(self, **kw):
"""Return RingCentral widget configuration for the JS frontend."""
config = request.env['rc.config']._get_active_config()
config = request.env['rc.config'].sudo()._get_active_config()
if not config:
return {'enabled': False}
return {
'enabled': config.phone_widget_enabled,
'client_id': config.client_id,
'app_server': config.server_url,
'app_server': config.server_url or 'https://platform.ringcentral.com',
'connected': config.state == 'connected',
}