Disabling links in the Menu according to the permissions the user has
16 Jun
2005
16 Jun
'05
2:10 p.m.
Hi, I've protected various spaces in my wiki to be viewed only by people in the specified group. To not show the links in the menu, I've included the links in an if clause: #if($xwiki.xWiki.getRightService().hasAccessLevel("view", $context.getUser(),"Intranet.Main", $context.context)) * [Intranet>Intranet.Main] #end This works fine, when I'm viewing the Menu in Main/WebHome, but as soon as I decend into Feedback/Main this entry (and all others which are protected) are not displayed any more. Is this the correct way to hide a link? Thanks Christian van der Leeden ----------------------------------------- Christian van der Leeden Mob: +49-163-3747111 Tel: +49-89-189488-66 [email protected]
7687
Age (days ago)
7687
Last active (days ago)
0 comments
1 participants
participants (1)
-
Christian van der Leeden