sreenath167 (via Nabble) wrote:
> <snip>
>
> 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
>
> Thanks,
> Sreenath
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.
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers