Index: trunk/extensions/WikimediaIncubator/IncubatorTest.php |
— | — | @@ -309,7 +309,7 @@ |
310 | 310 | * @return Boolean |
311 | 311 | */ |
312 | 312 | static function onGetUserPermissionsErrors( $title, $user, $action, &$result ) { |
313 | | - $notAllowedActions = in_array( array( 'edit', 'createpage' ) ); |
| 313 | + $notAllowedActions = in_array( $action, array( 'edit', 'createpage' ) ); |
314 | 314 | |
315 | 315 | $titletext = $title->getText(); |
316 | 316 | $prefixdata = self::analyzePrefix( $titletext ); |