restrictions on Special:Movepage
This commit is contained in:
parent
f0987b0523
commit
451df485da
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue