[Zope-CMF] Calling context.setTitle() doesn't work when you're not a Manager

Florent Guillaume fg@nuxeo.com
Tue, 24 Jun 2003 16:06:11 +0200


A long time ago Tres wrote:
> On Wed, 2003-01-22 at 09:27, Slade Mrs A wrote:
> > Calling context.setTitle() doesn't work when you're not a Manager.  I get
> > the following error:	Unauthorized: You are not allowed to access setTitle
> > in this context 
> > 
> > I tried giving the script a Proxy role of Manager but that didn't help, why?
> > (FYI, I am trying to execute my script on a 'Skinned Folder').
> 
> SkinnedFolder's 'setTitle' comes from PortalFolder, where it is
> protected by the "Manage Properties";  as a workaround, you could give
> that permission to the "Owner" role.
> 
> This is likely a bug, as SkinnedFolder is supposed to be "content",
> rather than "site structure" (PortalFolders normally make up the
> structure of the site, and hence had a different permission guarding
> their metadata than "ordinary" content).

How about adding DefaultDublinCoreImpl to SkinnedFolder's base classes ?
Would that pose a problem to anyone ?
I think it's the right thing here.

Florent


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