[Zope] Zclass and Permissions: Delete Instances?

wchr wchr@gmx.at
Sat, 22 Jun 2002 11:11:09 +0200


thx - quite obvious. so - am i wrong if i consider that for somehow=20
inconsistent? the zope-security-model allows me to delegate add- and=20
edit-permissions depending on meta_type, but concerning "Delete Objects"=20
  i=B4m only able to either disallow it or generally allow it for a=20
certain context/role...

/wolfie

--=20
http://www.t0.or.at

Dieter Maurer wrote:
> wchr writes:
>  > ok - there is an "Add ***" permission mapped to "Create class instan=
ces"=20
>  > per default. i also know how to create a new custom permission in th=
e=20
>  > product=B4s folder, how to add it to the zclass "Class Permission" a=
nd how=20
>  > to map a zclass-propertysheet=B4s "Manage properties" permission to =
my=20
>  > custom permission.
>  >=20
>  > but is there also a possibility to map the "Delete Objects" permissi=
on=20
>  > regarding a certain zclass to a custom permission?
> Yes, but it will not give you what you like:
>=20
>      The permission "Delete objects" is associated with the container
>      containing the to be deleted objects and not these objects themsel=
ves.
>=20
>      Thus, when your ZClass is an Object Manager, remapping "Delete obj=
ects"
>      will have an effect (on the ZClass content deletion). It will
>      not control deletion of the Z Instances themselves.