correct login checking logic

This commit is contained in:
Craig Andrews 2009-11-18 15:53:07 -05:00
parent 297f320e6f
commit a215ce6ed6

View File

@ -73,11 +73,7 @@ abstract class AuthorizationPlugin extends Plugin
function onStartSetUser(&$user) {
$loginAllowed = $this->loginAllowed($user);
if($loginAllowed === true){
if($this->authoritative) {
return false;
}else{
return;
}
return;
}else if($loginAllowed === false){
$user = null;
return false;