Hello,

I have a problem with the hasAccessLevel() method.

I want to list all the documents existing in a space, including the page
Main.Dashboard. As nothing appear in the "Documents in space", I try to list
the documents with this code :


#set($docNames = $xwiki.getSpaceDocsName($doc.space))

<ul>
#foreach($doc in $docNames)
 #if($xwiki.hasAccessLevel("view", $context.user, $doc))
  <li>$doc</li>
 #end
#end
</ul>

Regarding to his group rights, the user has the "view" right on the space,
as this right is checked in rights management.
By the way, he can access the document.

But, documents are not listed. $xwiki.hasAccessLevel("view", $context.user,
$doc) returns false.

Only admins in the XWikiAdminGroup can view the list.

Have you some ideas ?
-- 
View this message in context: 
http://n2.nabble.com/Problem-with-Access-Level-tp3383383p3383383.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to