[Zope] Export with Zope-Roles
Dieter Maurer
dieter at handshake.de
Thu Nov 27 18:43:24 EST 2003
Holger Schmidt wrote at 2003-11-26 22:37 +0100:
> my situation:
> I have a Folder - Folder1 - which has all needed rights for users with
> roles role1 and all needed rights for users with role2.
> In Folder1 there exist two Folders: Folder2 and Folder3 that only have
> rights for role1 OR role2 (rights are not aquired from Folder1...)
> If I try to export Folder1 as a user with role1 OR role2 the export
> contains both folders, Folder2 and Folder3 (but I do not have access
> to both folders ...).
>
> ---------------------------------------
> Folder1 (Role1 AND Role2)
> |
> |-Folder2 (Role1, NOT Role2)
> |
> |-Folder3 (Role2, NOT Role1)
> ----------------------------------------
>
> Does that mean that if I have the "export"-right in a special folder I
> am allowed to export all inner folders with that folder?
Yes: export always exports complete objects (including subobjects
like children). Checks are only made at the level of the
exported object (and not at the level of its descendants).
> Is there a possibility to export just those Objects in a Folder for
> which I have the "export"-right, or will I have to write something on
> my own ...?
Only when you program this yourself -- not with the built-in "export".
--
Dieter
More information about the Zope
mailing list