mattia_temp-newsgroup(a)yahoo.it wrote:
Hi Vitantonio,
i've tried search the archive, but i didn't find something that could
explain it to a novice (especially due to i don't know velocity )
Could you please help me?
Thank you!!!
Mattia,
first, set the username of the current user:
#set ($user = $xwiki.getUser())
then, check if that user is in the group you want:
#if ($user.isUserInGroup("Xwiki.XWikiGroupName")) {
...display something...
}
Hope this will help, I don't have time to check if this work, sorry.
Vito
--
Vitantonio Messa
+358 46 889 48 49 - vitantonio.messa(a)coss.fi
COSS - The Finnish Centre for Open Source Solutions
@ Technology Centre Hermia Ltd.
Hermiankatu 1, FIN-33720 Tampere, FINLAND