From 451df485dadd72b349fd2a8f8296fd15433b70fc Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 10 Jul 2004 01:28:25 +0000 Subject: [PATCH] restrictions on Special:Movepage --- includes/SpecialMovepage.php | 4 ++-- includes/User.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index 329c0d28cf..a00c8ca2c8 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -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; } diff --git a/includes/User.php b/includes/User.php index 2a06936a04..322ae18dd8 100644 --- a/includes/User.php +++ b/includes/User.php @@ -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; } } -- 2.20.1