Hi,

Do you tried this :
#if($xwiki.getUser().isUserInGroup('xwiki:XWiki.testvirtualgroup'))
"xwiki:" is the prefix of the main wiki

Hope this help
Maxime

2011/2/8 Pidoux75 <pidou...@gmail.com>

>
> Hi,
>
> I would like to know if is it possible to know if an user is in a group
> with
> use of "isUserInGroup" but when I do the test in a virtual wiki and the
> group is in the main wiki?
>
> For example, in the main Wiki, I have the "TestGroup01" with user "Toto"
> inside, then I would like to test in the virual wiki "WikiTest"
>
> So, I tried when the group is the virtual wiki (then it works) with:
>
> #if($xwiki.getUser().isUserInGroup('XWiki.testvirtualgroup'))
>  ok
> #end
>
> but I can't do when the group is in the main wiki and dunno if it's
> possible
> or not.
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Test-in-a-virtual-wiki-if-an-user-is-in-a-group-from-main-wiki-tp6003586p6003586.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to