Esbach, Brandon wrote:
> Make sure to add in the space, otherwise it won't know what group you're
> referring to:
> $user.isUserInGroup("XWikiAdminGroup") should read
> $user.isUserInGroup("XWiki.XWikiAdminGroup").
>
> Note that there is an easier way to get admin rights though; by using
> "hasAdminRights()". Otherwise use the isUserInGroup
>
Hi,
The following lines produce a nice It works! when the current user
belongs to the given group (XWiki.XWikiAdminGroup in this case).
#set ($user = $xwiki.getUser())
#if($user.isUserInGroup("XWiki.XWikiAdminGroup"))
It works!
#end
Brando: I was aware of the hasAdminRights() option but I need te check
users belonging to groups not with admin rights.
Thank you so much,
--
Ricardo RodrÃguez
Your XEN ICT Team
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users