Index: trunk/phase3/includes/Title.php |
— | — | @@ -2440,7 +2440,8 @@ |
2441 | 2441 | } |
2442 | 2442 | } else { |
2443 | 2443 | $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 ) ) { |
2445 | 2446 | return 'cantmove-titleprotected'; |
2446 | 2447 | } |
2447 | 2448 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -269,6 +269,7 @@ |
270 | 270 | * (bug 14058) Support pipe trick for namespaces and interwikis with "-" |
271 | 271 | * Message name filter on Special:Allmessages now case-insensitive |
272 | 272 | * (bug 13943) Fix image redirect behaviour on image pages |
| 273 | +* (bug 14093) Do 'sysop' => 'protect' magic in Title::isValidMoveOperation |
273 | 274 | |
274 | 275 | === API changes in 1.13 === |
275 | 276 | |