Vitantonio Messa wrote:
> Hi,
>
> it is possible. Instead of checking if the current user has
> administrator rights, you can check if he is in the group you want.
>
> There was a discussion about that some days ago on the mailing list.
> Look for it, if I remember right there was also the code you need.
>
> Vito
>
>
>
> V. Harikrishnan Nair wrote:
>
>> Hi.
>>
>> It is seen that Panel items can be hidden from users other than the Admins
>> using this statement -> #if ($xwiki.hasAdminRights()), right ?
>>
>> Is it possible to be able to display certain Panel items to certain user
>> groups ? If so, how ?
>>
>> Harikrishnan
>>
>
>
Just to ease the task. To show/hide a panel for the current user:
#set ($user = $xwiki.getUser())
#if($user.isUserInGroup("XWiki.YourGroup"))
...
#end
HTH,
--
Ricardo RodrÃguez
Your XEN ICT Team
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users