|
@@ -36,13 +36,16 @@ export function getVpaasTenant(state: Object) {
|
36
|
36
|
* Returns true if the current meeting is a vpaas one.
|
37
|
37
|
*
|
38
|
38
|
* @param {Object} state - The state of the app.
|
|
39
|
+ * @param {boolean} requiredJwt - Whether jwt is required or not.
|
39
|
40
|
* @returns {boolean}
|
40
|
41
|
*/
|
41
|
|
-export function isVpaasMeeting(state: Object) {
|
|
42
|
+export function isVpaasMeeting(state: Object, requiredJwt: boolean = true) {
|
42
|
43
|
const { billingCounterUrl, iAmRecorder, iAmSipGateway } = state['features/base/config'];
|
43
|
44
|
const { jwt } = state['features/base/jwt'];
|
44
|
45
|
|
45
|
|
- const isAllowed = iAmRecorder || iAmSipGateway || Boolean(jwt);
|
|
46
|
+ const jwtBoolean = requiredJwt ? Boolean(jwt) : true;
|
|
47
|
+
|
|
48
|
+ const isAllowed = iAmRecorder || iAmSipGateway || jwtBoolean;
|
46
|
49
|
|
47
|
50
|
return Boolean(
|
48
|
51
|
billingCounterUrl
|