How can I restrict a menu section?
I have xWiki 0.9.840 up and running now. Question: I want to have optional sections of the menu bar appear when members of certain groups are logged in. For example, I'd like to have a restricted space (which I now have), but not have the link appear on the left hand menu unless the user is allowed to visit that space. How can I do this? -- Adrian Hall Sr. Product Line Manager, Administration and Identity Management e. [email protected]; t. +1 (408) 720-3856; c. +1 (408) 667-4977
Hi, You could use the checkAccess method (see http://build.xpertnet.biz/doc/api/com/xpn/xwiki/api/XWiki.html ) to see if a user has access to a particular page, and only display the menu if that is the case: #if ($xwiki.checkAccess("MyRestrictedSpace.SomePage", "view")==true) * My * Restricted * Content #end Cheers, Robin On 25/04/06, Adrian Hall <[email protected]> wrote:
I have xWiki 0.9.840 up and running now.
Question: I want to have optional sections of the menu bar appear when members of certain groups are logged in. For example, I'd like to have a restricted space (which I now have), but not have the link appear on the left hand menu unless the user is allowed to visit that space.
How can I do this? -- Adrian Hall Sr. Product Line Manager, Administration and Identity Management e. [email protected]; t. +1 (408) 720-3856; c. +1 (408) 667-4977
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
participants (2)
-
Adrian Hall -
Robin Fernandes