[Plone-UI] How to hide a portlet (Site Setup) based on roles?

Lars Löwenadler lars.lowenadler at fcc.chalmers.se
Tue Sep 8 08:02:28 UTC 2009


Hi, Plone 3.3 user here, building a site for users with the Plone "member"
role only.

As a member clicks Preferences on the personal bar, the member sees the Site
Setup portlet on the left - though only the heading, not the content. When
clicking the heading the member expectedly gets the message "Insufficient
Privileges".

Now, I'd like to completely hide this portlet for everyone (except managers
like me), but I can't find the proper code nor the proper place/template to
do it. I have 'googled' for a while now. My attempts include adding a
condition to the page template "plone_control_panel" (but I can't get it
right), among other random actions based on hints from the Internet.

Any suggestions would be much appreciated!

Thanks,
Lars
-- 
View this message in context: http://n2.nabble.com/How-to-hide-a-portlet-Site-Setup-based-on-roles-tp3601760p3601760.html
Sent from the User Interface & Design mailing list archive at Nabble.com.




More information about the UI mailing list