Don't add the user's domain to invitee domains unless it's on the whitelist
This commit is contained in:
parent
84c8ffc28a
commit
607fa56449
@ -231,8 +231,9 @@ class DomainWhitelistPlugin extends Plugin
|
||||
)
|
||||
);
|
||||
|
||||
array_unshift($orderedWhitelist, $userDomain);
|
||||
|
||||
if (in_array($userDomain, $whitelist)) {
|
||||
array_unshift($orderedWhitelist, $userDomain);
|
||||
}
|
||||
return $orderedWhitelist;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user