Hi Antoine,
On Tue, Dec 16, 2008 at 1:17 AM, antoine Seilles
<antoineseilles(a)gmail.com>wrote;wrote:
I would like to modify navigation panel to list only spaces for wich a
user has at least the view access level.
How to test the access Level of a user for a space?
A space exists from the moment a page is created in that space. Most of the
time, you can check the rights against SpaceName.WebHome or
SpaceName.WebPreferences , those are the 2 pages that are the most likely to
exist in any given space.
How to get the current user?
$context.user ;-)
Thank for your time.
Please consider adding your snippet on http:/:code.xwiki.org/ once you have
it working fine.
Guillaume
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://blog.xwiki.com/