[Zope-CMF] Delete (and edit) permissions within portal folders...
Florent Guillaume
fg@nuxeo.com
Fri, 26 Jul 2002 16:57:05 +0000 (UTC)
Sidnei da Silva <sidnei@x3ng.com.br> wrote:
> You must give the 'Delete object' permission to owner and give the user a
> local role of owner on the objects you want them to be able to delete.
It doesn't work like that. The 'Delete object' permission is a
permission on the *container*, not the content.
The only way to do what you want is to have the content objects derive
from a class that has a manage_beforeDelete that checks deletability and
raises a BeforeDeleteException if it's not ok.
But beware, that can render certain objects or containers undeletable
even by Manager if it's not done correctly.
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com