[Zope-CMF] Permissions

Gitte Wange gitte@mmmanager.org
Thu, 7 Jun 2001 11:52:06 +0200


On Thursday 07 June 2001 11:37, James van der Veen wrote:
> Hi all,
>
> I guess it is quite simple but I just can=B4t figure it out.
>
> I Have a CMF instance. Added some actions to the actions box (only visi=
ble
> to users who are logged in)
> But I would like to filter out the standard CMF actions like adding
> folders, content etc etc.
> This sould only be visible to the manager. How do I get this done?
>
> Any pointers? Just let me know!
>
> Thanx in advance
>
> James
>

Well in the action_box method in the skinsfolder you could add a check be=
fore=20
the links are written.
Something like:
<dtml-if=20
expr=3D"portal_membership.getAuthenticatedMember().has_role('Manager')">
 Here comes the code for adding folders, content etc.
</dtml-if>

Gitte