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) { function onStartSetUser(&$user) {
$loginAllowed = $this->loginAllowed($user); $loginAllowed = $this->loginAllowed($user);
if($loginAllowed === true){ if($loginAllowed === true){
if($this->authoritative) { return;
return false;
}else{
return;
}
}else if($loginAllowed === false){ }else if($loginAllowed === false){
$user = null; $user = null;
return false; return false;