Some tests I made and let me perplexed : I can't view the list of documents in the current space although everybody has "view" rights on all spaces. I view the docs only if I have the "admin" right on the space.
#set($docNames = $xwiki.getSpaceDocsName($doc.space)) #foreach($doc in $docNames) $doc returns the name of the page without the name of the space. Exemple : for the page "Conception.Outils" ("Conception" is the space, "Outils" the page), $doc returns "Outils" By specifying the space : #if($xwiki.hasAccessLevel("view", $context.user, "Conception.Outils")) an user with only "view" right see the list of docs. In summary : #if($xwiki.hasAccessLevel("view", $context.user, "Outils")) returns false for users with "view" right (true with "admin" right) and #if($xwiki.hasAccessLevel("view", $context.user, "Conception.Outils")) returns true for users with "view" right. gwenhaelc wrote: > > I save the file on this board : > http://www.humyo.fr/F/9681993-983991337 > > -- > Gwen > > > > 2009/8/4 Sergiu Dumitriu <ser...@xwiki.com> > >> GwenhaÃ«l CORAY wrote: >> > Thank you for your answer. >> > >> > The logs show me several thousands of lines and I don't understand >> where >> I >> > can find the information. >> > >> > There, an example of the lines I get : >> > >> > 2009-08-04 15:00:41,776 [ >> http://localhost:8080/xwiki/bin/view/Conception/] >> > [http-8080-1] DEBUG xwiki.XWikiRightServiceImpl - Searching for >> matching >> > rights at group level >> >> Could you save the log in a file and upload it somewhere, then give me a >> link to it? >> >> > Conception is the space wich I want to see the documents. >> > gco is a user who is in two groups : XWikiAllGroup and Conception. >> > XWikiAllGroup has view and comment rights on all documents and >> Conception >> > group has view, comment, edit and delete rights on documents of the >> space >> > Conception. >> > >> >> >> -- >> Sergiu Dumitriu >> http://purl.org/net/sergiu/ >> _______________________________________________ >> users mailing list >> email@example.com >> http://lists.xwiki.org/mailman/listinfo/users >> > _______________________________________________ > users mailing list > firstname.lastname@example.org > http://lists.xwiki.org/mailman/listinfo/users > > -- View this message in context: http://n2.nabble.com/Problem-with-Access-Level-tp3383383p3397409.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list email@example.com http://lists.xwiki.org/mailman/listinfo/users