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

Slade Mrs A A.Slade@rmcs.cranfield.ac.uk
Wed, 22 Jan 2003 17:07:50 -0000


Proxy role of Manager did actually work in the end.
Thanks for your help.
April

-----Original Message-----
From: Tres Seaver [mailto:tseaver@zope.com]
Sent: Wednesday, January 22, 2003 2:53 PM
To: Slade Mrs A
Cc: Zope-CMF "Mailing List (E-mail)
Subject: Re: [Zope-CMF] Calling context.setTitle() doesn't work when
you're not a Manager


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).

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com