--- lib/TWiki/Search.pm.orig 2005-08-17 16:01:47.000000000 +0200 +++ lib/TWiki/Search.pm 2005-10-04 01:00:36.000000000 +0200 @@ -771,10 +771,13 @@ # make sure we have date and author if( exists( $topicRevUser{$topic} ) ) { + ( $meta, $text ) = &TWiki::Store::readTopic( $thisWebName, $topic ); + $text =~ s/%WEB%/$thisWebName/gos; + $text =~ s/%TOPIC%/$topic/gos; + $allowView = &TWiki::Access::checkAccessPermission( "view", $TWiki::wikiUserName, $text, $topic, $thisWebName ); $revDate = $topicRevDate{$topic}; $revUser = $topicRevUser{$topic}; $revNum = $topicRevNum{$topic}; - $allowView = $topicAllowView{$topic}; } else { # lazy query, need to do it at last ( $meta, $text ) = &TWiki::Store::readTopic( $thisWebName, $topic );