mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-07-24 13:02:21 +00:00
Bug/speech backwards compatibility (#203)
* add /Accounts api call back * add /accounts call back * include sp user into check --------- Co-authored-by: EgleHelms <e.helms@cognigy.com>
This commit is contained in:
@@ -87,7 +87,10 @@ export const SpeechServices = () => {
|
||||
|
||||
useEffect(() => {
|
||||
setLocation();
|
||||
if (currentServiceProvider) {
|
||||
|
||||
if (user?.scope !== USER_ACCOUNT && accountSid) {
|
||||
setApiUrl(`Accounts/${accountSid}/SpeechCredentials`);
|
||||
} else {
|
||||
setApiUrl(
|
||||
`ServiceProviders/${currentServiceProvider?.service_provider_sid}/SpeechCredentials`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user