Hi Antonio,
On Apr 22, 2007, at 3:15 PM, Antonio Goncalves wrote:
Hi,
I need to have a private space on my wiki. A space where all pages
would be completly hidden from everybody else except Admins. I did
it easily with Space Rights (XWikiGuest and XWikiAllGroup / view /
deny). But the pages can still be searched. How can I hide their
content from the search ?
This is an interesting problem. Ideally we should check that the user
has view rights on any query done on a document in the database. In
practice it might not be so easy to do. Anyone has an idea?
Now back to your search problem, you can edit the WebSearch page and
exclude that space from the search by modifying:
#set ($excludedWebs = "doc.web<>'XWiki' and
doc.web<>'Main' and
doc.web<>'Admin' and doc.web<>'Panels' and
doc.name<>'WebPreferences'
and")
Add your space to the exclusion list.
Thanks
-Vincent