r24520 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24519‎ | r24520 | r24521 >
Date:13:21, 1 August 2007
Author:werdna
Status:old
Tags:
Comment:
(bug 10767) More fixes for userCan. Kudos to WebBoy for report + patch
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -1158,9 +1158,7 @@
11591159 ( !$this->isTalkPage() && !$user->isAllowed( 'createpage' ) ) ) {
11601160 $errors[] = $user->isAnon() ? array ('nocreatetext') : array ('nocreate-loggedin');
11611161 }
1162 - }
1163 -
1164 - if( $action == 'move' &&
 1162+ } elseif( $action == 'move' &&
11651163 !( $this->isMovable() && $user->isAllowed( 'move' ) ) ) {
11661164 $errors[] = $user->isAnon() ? array ( 'movenologintext' ) : array ('movenotallowed');
11671165 } else if ( !$user->isAllowed( $action ) ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r24631Merged revisions 24480-24600 via svnmerge from...david18:39, 6 August 2007

Status & tagging log