correct login checking logic
This commit is contained in:
parent
297f320e6f
commit
a215ce6ed6
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user