HowtoControlPanelbasedontheusergroupwithinthewiki

Last modified by Vincent Massol on 2009/08/24

Question How can you make a panel appear for certain groups of wiki users, and hide it for others?
Answer

Inside the panel code, you could use some velocity scripting. For example to make a panel appear only for an admin:

#if ($xwiki.hasAdminRights())
#panelheader('My Panel')
...
#panelfooter()
#end

Get Connected