fully support the editing toolbar, but was found to be too confusing.
* (bug 2554) Tell users they are uploading too large file
* (bug 3271) Updated LanguageNn.php for HEAD
+* (bug 3280) Respect 'move' group permission on page moves
+
=== Caveats ===
'href' => $this->mTitle->getLocalUrl( 'action=delete' )
);
}
- if ( $wgUser->isLoggedIn() ) {
- if ( $this->mTitle->userCanMove()) {
- $content_actions['move'] = array(
- 'class' => ($this->mTitle->getDbKey() == 'Movepage' and $this->mTitle->getNamespace == NS_SPECIAL) ? 'selected' : false,
- 'text' => wfMsg('move'),
- 'href' => $this->makeSpecialUrl("Movepage/$this->thispage" )
- );
- }
+ if ( $this->mTitle->userCanMove()) {
+ $content_actions['move'] = array(
+ 'class' => ($this->mTitle->getDbKey() == 'Movepage' and $this->mTitle->getNamespace == NS_SPECIAL) ? 'selected' : false,
+ 'text' => wfMsg('move'),
+ 'href' => $this->makeSpecialUrl("Movepage/$this->thispage" )
+ );
}
} else {
//article doesn't exist or is deleted
global $wgUser, $wgOut, $wgRequest, $action, $wgOnlySysopMayMove;
# check rights. We don't want newbies to move pages to prevents possible attack
- if ( $wgUser->isAnon() or $wgUser->isBlocked() or ($wgOnlySysopMayMove and $wgUser->isNewbie())) {
+ if ( !$wgUser->isAllowed( 'move' ) or $wgUser->isBlocked() or ($wgOnlySysopMayMove and $wgUser->isNewbie())) {
$wgOut->errorpage( "movenologin", "movenologintext" );
return;
}
}
}
- if( $action == 'move' && !$this->isMovable() ) {
+ if( $action == 'move' &&
+ !( $this->isMovable() && $wgUser->isAllowed( 'move' ) ) ) {
wfProfileOut( $fname );
return false;
}