Fix borked r84266.
authorHappy-melon <happy-melon@users.mediawiki.org>
Fri, 18 Mar 2011 21:31:11 +0000 (21:31 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Fri, 18 Mar 2011 21:31:11 +0000 (21:31 +0000)
includes/User.php

index a0fce2c..218355d 100644 (file)
@@ -2251,7 +2251,7 @@ class User {
        public function isAllowedAny( /*...*/ ){
                $permissions = func_get_args();
                foreach( $permissions as $permission ){
-                       if( $this->isAllowedInternal( $permission ) ){
+                       if( $this->isAllowed( $permission ) ){
                                return true;
                        }
                }
@@ -2265,7 +2265,7 @@ class User {
        public function isAllowedAll( /*...*/ ){
                $permissions = func_get_args();
                foreach( $permissions as $permission ){
-                       if( !$this->isAllowedInternal( $permission ) ){
+                       if( !$this->isAllowed( $permission ) ){
                                return false;
                        }
                }