[Product-Developers] visibility of viewlets

J-C Brand jc at opkode.com
Wed May 13 08:01:49 UTC 2009


sreenath167 (via Nabble) wrote:
> Hi developers,
>
> 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

-- 
View this message in context: http://n2.nabble.com/visibility-of-viewlets-tp2879578p2879640.html
Sent from the Product Developers mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20090513/2fa1beb9/attachment.html>


More information about the Product-Developers mailing list