Le 26 juil. 09 à 11:48, Taito Horiuchi a écrit :

Hello,

I have automatic tab generation disabled, and am managing the set of
tabs explicitly through the ZMI via portal_actions/portal_tabs.

But I need for each tab to display conditionally, only when the user
actually has 'View' permission on the target location for the tab.

Selecting "View" for Permission with visible option should work if it's about
through ZMI setting.

This is not the solution for David. This just asserts that the user has the View permission on the context object and *not* on the link target object.

If your target is "string: $portal_url/some/path", then the condition should be:

"python:checkPermission('View', portal.unrestrictedTraverse('/some/ path')"

HTH
--
Gilles Lenfant


Taito

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to