- only allow moderators in when guest policy is ASK_MODERATOR

This commit is contained in:
Richard Alam 2018-07-20 07:40:29 -07:00
parent 7a5ba9c036
commit bfe9075e55

View File

@ -328,7 +328,7 @@ public class Meeting {
} else if (GuestPolicy.ALWAYS_DENY.equals(guestPolicy)) {
return GuestPolicy.DENY;
} else if (GuestPolicy.ASK_MODERATOR.equals(guestPolicy)) {
if (!ROLE_MODERATOR.equals(role) && (guest)) {
if (!ROLE_MODERATOR.equals(role)) {
return GuestPolicy.WAIT ;
}
return GuestPolicy.ALLOW;