|
@@ -29,11 +29,16 @@ export function extractVpaasTenantFromPath(path: string) {
|
29
|
29
|
* @returns {boolean}
|
30
|
30
|
*/
|
31
|
31
|
export function isVpaasMeeting(state: Object) {
|
|
32
|
+ const { billingCounterUrl, iAmRecorder, iAmSipGateway } = state['features/base/config'];
|
|
33
|
+ const { jwt } = state['features/base/jwt'];
|
|
34
|
+
|
|
35
|
+ const isAllowed = iAmRecorder || iAmSipGateway || Boolean(jwt);
|
|
36
|
+
|
32
|
37
|
return Boolean(
|
33
|
|
- state['features/base/config'].billingCounterUrl
|
34
|
|
- && state['features/base/jwt'].jwt
|
|
38
|
+ billingCounterUrl
|
35
|
39
|
&& extractVpaasTenantFromPath(
|
36
|
40
|
state['features/base/connection'].locationURL.pathname)
|
|
41
|
+ && isAllowed
|
37
|
42
|
);
|
38
|
43
|
}
|
39
|
44
|
|