restrictions on Special:Movepage
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 10 Jul 2004 01:28:25 +0000 (01:28 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 10 Jul 2004 01:28:25 +0000 (01:28 +0000)
includes/SpecialMovepage.php
includes/User.php

index 329c0d2..a00c8ca 100644 (file)
@@ -3,9 +3,9 @@ require_once( "LinksUpdate.php" );
 
 function wfSpecialMovepage()
 {
-       global $wgUser, $wgOut, $wgRequest, $action;
+       global $wgUser, $wgOut, $wgRequest, $action, $wgOnlySysopMayMove;
 
-       if ( 0 == $wgUser->getID() or $wgUser->isBlocked() ) {
+       if ( 0 == $wgUser->getID() or $wgUser->isBlocked() or ($wgOnlySysopMayMove and $wgUser->isNewbie())) {
                $wgOut->errorpage( "movenologin", "movenologintext" );
                return;
        }
index 2a06936..322ae18 100644 (file)
@@ -722,7 +722,7 @@ class User {
        }
 
        function isNewbie() {
-               return $this->mId > User::getMaxID() * 0.99 && !$this->isSysop() || $this->getID() == 0;
+               return $this->mId > User::getMaxID() * 0.99 && !$this->isSysop() && !$this->isBot() || $this->getID() == 0;
        }
 }