From: Rotem Liss Date: Sat, 9 Sep 2006 08:50:34 +0000 (+0000) Subject: wgOnlySysopMayMove seems to be still used, partial revert till it's changed to wgGrou... X-Git-Tag: 1.31.0-rc.0~55809 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=7ffbd3933367b0e99c6da1469f686f69f2071e5c;p=lhc%2Fweb%2Fwiklou.git wgOnlySysopMayMove seems to be still used, partial revert till it's changed to wgGroupPermissions. --- diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index 9777a80c20..b5fa9e13a9 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -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; }