From: Tim Starling Date: Sat, 10 Jul 2004 01:28:25 +0000 (+0000) Subject: restrictions on Special:Movepage X-Git-Tag: 1.5.0alpha1~2699 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=451df485dadd72b349fd2a8f8296fd15433b70fc;p=lhc%2Fweb%2Fwiklou.git restrictions on Special:Movepage --- 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; } }