J-C Brand wrote:

 > I have created 5 views :
 > property__view,customized__view,finance__view,listingactivities__view,
 > custom__view and a viewlet manager 'examplemanagement.actions' and one
 > viewlet
 >
 > one of the views registration :
 >
 >   <browser:page
 >       for="*"
 >       name="property__view"
 >       class=".property_view.Property_View"
 >       template="templates/property_view.pt"
 >       allowed_interface=".property_view.IProperty_View"
 >       permission="zope.Public"
 >       />
 >
<--snip-->

 >
 > i am using code <div tal:replace="structure
 > provider:examplemanagement.actions" /> in pt files;which displays the
 > all above five views in 5 tabs,
 >
 > here how can i make the tab  'listingactivities__view'   visible to
 > Users with Manager role and Owners only  (it should not visible to
 > users with Member role)
 >
 > Please help me out

I think you can just change the permission in the ZCML registration from
zope.Public to zope.ManageContent


JC

For a Plone site I'll pull in xmlns:cmf="http://namespaces.zope.org/cmf"; in the ZCML namespace declaration at the top, then use cmf.ModifyPortalContent as permission. You cannot use roles in ZCML. The ModifyPortalContent permission is available to Manager, Owner, Editor and perhaps a few more roles of sufficient power in a Plone 3 site.

Hedley

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

Reply via email to