[Zope-CMF] Strange behaviour: Owner and LocalRole Owner

Florent Guillaume fg@nuxeo.com
Fri, 21 Feb 2003 15:07:31 +0000 (UTC)


Rainer Thaden  <thadi@gmx.de> wrote:
> Hi,
> 
> i noticed a strange behaviour with permissions for an owner of a
> folderish content type.
> The content type is derived from DefaultDublinCoreImpl, SkinnedFolder
> and PortalContent (in that order).
> The owner of such an object in the 'published' state has the Modify
> portal content permission.
> But: neither the View nor the edit nor the metadata actions are
> visible. Workflow provided actions are also not visible.
> When i give the owner of that object a local role 'owner' additionally
> everything works fine.

What do you mean by "the owner of that object". Don't confuse
local-role-owner with executable-owner (the latter is what you see in
the Owner tab). They have nothing to do with each other.

> As i understand from the Zope Documentation the owner of an object
> also has the local role 'owner' by default ?!

In Zope, when someone creates an object the objects is automatically
assigned a locale role Owner with the id of the user that created it.
This happens in ObjectManager._setObject.

Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com