wgOnlySysopMayMove seems to be still used, partial revert till it's changed to wgGrou...
authorRotem Liss <rotem@users.mediawiki.org>
Sat, 9 Sep 2006 08:50:34 +0000 (08:50 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Sat, 9 Sep 2006 08:50:34 +0000 (08:50 +0000)
includes/SpecialMovepage.php

index 9777a80..b5fa9e1 100644 (file)
@@ -9,10 +9,10 @@
  * Constructor
  */
 function wfSpecialMovepage( $par = null ) {
-       global $wgUser, $wgOut, $wgRequest, $action;
+       global $wgUser, $wgOut, $wgRequest, $action, $wgOnlySysopMayMove;
 
        # Check rights
-       if ( !$wgUser->isAllowed( 'move' ) ) {
+       if ( !$wgUser->isAllowed( 'move' ) || ( $wgOnlySysopMayMove && $wgUser->isNewbie() ) ) {
                $wgOut->showErrorPage( 'movenologin', 'movenologintext' );
                return;
        }