Topic on Extension talk:FlaggedRevs

Wiki does not show stable version for non-users

4
195.205.47.232 (talkcontribs)

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

Aaron Schulz (talkcontribs)

The "precedence" setting was basically removed in newer versions.

195.205.47.232 (talkcontribs)

So, how can I present for non-users only pristine versions in my private wiki? (only pristine should be visible nothing else). How to do it? Thx in advance Peter

195.205.47.232 (talkcontribs)

Aaron could You please prepare and send me patch to allow for non-users read only pristine version in my private wiki? Regards, Peter

Reply to "Wiki does not show stable version for non-users"