restrictions on Special:Movepage

This commit is contained in:
Tim Starling 2004-07-10 01:28:25 +00:00
parent f0987b0523
commit 451df485da
2 changed files with 3 additions and 3 deletions

View 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;
}

View 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;
}
}