[Product-Developers] visibility of viewlets
jc at opkode.com
Wed May 13 13:39:01 UTC 2009
sreenath167 (via Nabble) wrote:
> Thanks for the reply, i have implemented and i have logged in as user
> with role other than 'Manager' and i have noticed that it showing the
> tab for 'listingactivities__view' view , when i click i lands in page
> saying not have enough permissions; this is also good ; and is there
> any way of hiding the tab if user don't have the role
In the portal_actions tool in the ZMI you'll see that some of the
restricted actions have permission checks like the following:
> python:checkPermission("Modify portal content", object) or
> checkPermission("Review portal content", object)
You want to do something similar (but with the 'Manage content'
permission instead), either on the tab or in the code where you get the tab.
View this message in context: http://n2.nabble.com/visibility-of-viewlets-tp2879578p2883805.html
Sent from the Product Developers mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Product-Developers