28 Oct
2007
28 Oct
'07
10:54 p.m.
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 reads It works! when 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