Gregor Speck wrote:
> Hey Eike thx for the help.
>
> At the moment i try to use the .hasAccessLevel() method.
>
> But it won't work....
>
>
> Does anybody know where is my mistake?
>
> Greetings,
> Greg
>
>
>
> ##if($context.user != "XWiki.XWikiGuest")
> #set($user = $xwiki.getUser())
> #set($groups = $xwiki.rightsmanager)
>
> #panelheader("Spaces")
> #set($spaces = $xwiki.spaces)
> #set($first = true)
> #foreach($space in $spaces)
> #if($first)
> #set($first = false)
> #else
> <span class="pitemseparator">|</span>
> #end
>
> $xwiki.hasAccessLevel("view","$context.user","XWiki.$space")
The line above. What do you mean by "XWiki.$space"? Don't you mean
"${space}.WebHome"?
> #if($space == $doc.space)
> <span class="panelitem currentspace">[$space>${space}.WebHome]</span>
> #else
> <span class="panelitem">[$space>${space}.WebHome]</span>
> #end
> #end
> #panelfooter()
> ##end
>
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users