Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -545,6 +545,10 @@ |
546 | 546 | |
547 | 547 | /// Hook: getUserPermissionsErrorsExpensive |
548 | 548 | public static function lockedPagesCheck( Title $title, User $user, $action, &$result ) { |
| 549 | + if ( $action == 'read' ) { |
| 550 | + return true; |
| 551 | + } |
| 552 | + |
549 | 553 | $cache = wfGetCache( CACHE_ANYTHING ); |
550 | 554 | $key = wfMemcKey( 'pt-lock', $title->getPrefixedText() ); |
551 | 555 | // At least memcached mangles true to "1" |
Index: trunk/extensions/WikimediaIncubator/IncubatorTest.php |
— | — | @@ -309,6 +309,10 @@ |
310 | 310 | * @return Boolean |
311 | 311 | */ |
312 | 312 | static function onGetUserPermissionsErrors( $title, $user, $action, &$result ) { |
| 313 | + if ( $action == 'read' ) { |
| 314 | + return true; |
| 315 | + } |
| 316 | + |
313 | 317 | $titletext = $title->getText(); |
314 | 318 | $prefixdata = self::analyzePrefix( $titletext ); |
315 | 319 | |