Moderated rooms or subdomains (#6959)

* fix: Fixes using token with no user context.

* feat(moderated): Adds option to add moderated rooms and subdomains.

When a user joins such room or subdomain in order to be a moderator needs to provide a valid jwt token for that room.

* squash: Renames function.

* ref: Removes filtering jicofo setting owners.

This will be disabled on jicofo side and will greatly simplify logic.
Also check the checks to avoid jwt for main domain to access subdomains and the other way around.

* fix: Skips allowners logic for admins.
This commit is contained in:
Дамян Минков
2020-06-05 07:57:49 -05:00
committed by GitHub
parent ff23f81dfe
commit e6dbe65193
2 changed files with 63 additions and 2 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ function _setJWT(store, next, action) {
action.jwt = jwt;
action.issuer = iss;
if (context) {
const user = _user2participant(context.user);
const user = _user2participant(context.user || {});
action.callee = context.callee;
action.group = context.group;