Thread:Extension talk:FlaggedRevs/Wiki does not show stable version for non-users

Hi, problem is as in the subject. Instead of stable version, reviewed version in presented. In table flaggedrevs there are values 2 in fr_quality fields. The table flaggedpage_config is empty. Settings in Localsettings.php as follow: $wgFlaggedRevsVisible = array( '*' ); $wgFlaggedRevsOverride = true; $wgHooks['TitleReadWhitelist'][] = 'efFlaggedRevsHooks_userCanView'; function efFlaggedRevsHooks_userCanView( Title $title, $user, &$result ) { global $wgFlaggedRevsVisible, $wgTitle; if ( empty( $wgFlaggedRevsVisible ) ) { return true; }   # Admin may set this to false, rather than array... $groups = $user->getGroups; $groups[] = '*'; if ( !array_intersect( $groups, $wgFlaggedRevsVisible ) ) { return true; }   # See if there is a stable version. Also, see if, given the page # config and URL params, the age can be overriden. The later # only applies on page views of $title. if ( !empty( $wgTitle ) && $wgTitle->equals( $title ) ) { $view = FlaggablePageView::singleton; // Cache stable version while we are at it. if ( $view->showingStable ) { $result = true; }   } else { // Search and such need to know that the reader can view this page if ( FlaggedRevision::newFromStable( $title ) ) { $result = true; }   }    return true; }

$wgFlaggedRevsPrecedence = 2;

Thx for help