[Zope-CMF] Setting another permission for adding a specific object to portal
Troy Farrell
troy@entheossoft.com
Sun, 20 Jan 2002 23:03:06 -0600
Gitte,
I had a similar problem. You'll find, if you look a the local roles in
each cmf/Members/username folder, that a member has the local role of
'Owner' in their folder. You need to ensure that 'Owners' don't have
the permission to add these objects. Secondly, you should be using
DCWorkflow. With DCWorkflow, you can set permissions on each piece of
content in each state. It's really powerful, but a bit confusing in the
beginning. BTW, changing and existing site to DCWorkflow will loose all
existing workflow info on content. I think there's a way to keep it,
but I'm lazy and don't have it in front of me.
Browse cmf.zope.org and the mailing list archives.
Troy
--
Troy Farrell
Developer
Entheos Software
mailto:troy@entheossoft.com
http://www.entheossoft.com
Gitte Wange wrote:
> Hello,
>
> I have created a new portal type for my portal.
> I want only Managers to be able to add these objects (of this type) so in the code I set ADD_CONTENT_PERMISSION = 'Manage portal' (instead of 'Add portal content')..
>
> But this wasn't enough. Ordinary members can add these new objects.
> Then I looked at the security tab in the portal_types tool (for my new object type) but it didn't enlighten me.
> So how do I specify that only Managers can add these new objects ?
>
> TIA,
> Gitte Wange