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

This commit is contained in:
Zach Copley 2011-05-11 16:19:51 -07:00
parent 84c8ffc28a
commit 607fa56449

View File

@ -231,8 +231,9 @@ class DomainWhitelistPlugin extends Plugin
)
);
array_unshift($orderedWhitelist, $userDomain);
if (in_array($userDomain, $whitelist)) {
array_unshift($orderedWhitelist, $userDomain);
}
return $orderedWhitelist;
}