Commit 607fa564 authored by Zach Copley's avatar Zach Copley

Don't add the user's domain to invitee domains unless it's on the whitelist

parent 84c8ffc2
......@@ -231,8 +231,9 @@ class DomainWhitelistPlugin extends Plugin
)
);
array_unshift($orderedWhitelist, $userDomain);
if (in_array($userDomain, $whitelist)) {
array_unshift($orderedWhitelist, $userDomain);
}
return $orderedWhitelist;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment