Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -1513,7 +1513,8 @@ |
1514 | 1514 | public static function userCanView( $title, $user, $action, $result ) { |
1515 | 1515 | global $wgFlaggedRevsVisible, $wgFlaggedRevsTalkVisible, $wgTitle; |
1516 | 1516 | # Assume $action may still not be set, in which case, treat it as 'view'... |
1517 | | - if( !$wgFlaggedRevsVisible || $action != 'read' ) |
| 1517 | + # Return out if $result set to false by some other hooked call. |
| 1518 | + if( !$wgFlaggedRevsVisible || $action != 'read' || $result===false ) |
1518 | 1519 | return true; |
1519 | 1520 | # Admin may set this to false, rather than array()... |
1520 | 1521 | $groups = $user->getGroups(); |