This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]
But here's a fix:
--- src/webdocs/Search.jsp      2003-09-13 19:01:59.000000000 +0300
+++ ../eclipse/JSPWiki/src/webdocs/Search.jsp   2003-12-04 12:41:38.000000000 +0200
@@ -36,7 +36,16 @@
         log.info("Searching for string "+query);

         list = wiki.findPages( query );
-
+        Collection results = new ArrayList();
+        Iterator i = list.iterator();
+        while( i.hasNext() )
+        {
+               SearchResult result = (SearchResult) i.next();
+               if( wiki.getAuthorizationManager().checkPermission(result.getPage(), wikiContext.getCurrentUser(), "view") )
+                       results.add(result);
+        }
+               list = results;
+
         pageContext.setAttribute( "searchresults",
                                   list,
                                   PageContext.REQUEST_SCOPE );

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 04-Dec-2003 12:44 by Killer.