r34660 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34659‎ | r34660 | r34661 >
Date:14:12, 12 May 2008
Author:btongminh
Status:old
Tags:
Comment:
(bug 14093) Do 'sysop' => 'protect' magic in Title::isValidMoveOperation
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -2440,7 +2440,8 @@
24412441 }
24422442 } else {
24432443 $tp = $nt->getTitleProtection();
2444 - if ( $tp and !$wgUser->isAllowed( $tp['pt_create_perm'] ) ) {
 2444+ $right = ( $tp['pt_create_perm'] == 'sysop' ) ? 'protect' : $tp['pt_create_perm'];
 2445+ if ( $tp and !$wgUser->isAllowed( $right ) ) {
24452446 return 'cantmove-titleprotected';
24462447 }
24472448 }
Index: trunk/phase3/RELEASE-NOTES
@@ -269,6 +269,7 @@
270270 * (bug 14058) Support pipe trick for namespaces and interwikis with "-"
271271 * Message name filter on Special:Allmessages now case-insensitive
272272 * (bug 13943) Fix image redirect behaviour on image pages
 273+* (bug 14093) Do 'sysop' => 'protect' magic in Title::isValidMoveOperation
273274
274275 === API changes in 1.13 ===
275276

Status & tagging log