(bug 10767) More fixes for userCan. Kudos to WebBoy for report + patch
authorAndrew Garrett <werdna@users.mediawiki.org>
Wed, 1 Aug 2007 13:21:07 +0000 (13:21 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Wed, 1 Aug 2007 13:21:07 +0000 (13:21 +0000)
includes/Title.php

index 80adc1c..028df68 100644 (file)
@@ -1158,9 +1158,7 @@ class Title {
                                ( !$this->isTalkPage() && !$user->isAllowed( 'createpage' ) ) ) {
                                $errors[] = $user->isAnon() ? array ('nocreatetext') : array ('nocreate-loggedin');
                        }
-               }
-
-               if( $action == 'move' &&
+               } elseif( $action == 'move' &&
                        !( $this->isMovable() && $user->isAllowed( 'move' ) ) ) {
                        $errors[] = $user->isAnon() ? array ( 'movenologintext' ) : array ('movenotallowed');
                 } else if ( !$user->isAllowed( $action ) ) {