]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct login checking logic
authorCraig Andrews <candrews@integralblue.com>
Wed, 18 Nov 2009 20:53:07 +0000 (15:53 -0500)
committerCraig Andrews <candrews@integralblue.com>
Wed, 18 Nov 2009 20:53:07 +0000 (15:53 -0500)
plugins/Authorization/AuthorizationPlugin.php

index be39aedd21c3a2dac42ccfe8739a275aa8a344c4..6f21c93109b2e8ac24c1dc970e1021c4d306f6f9 100644 (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;