[Zope] How to set proxy roles in dtml method?
Dieter Maurer
dieter@handshake.de
Tue, 9 Jan 2001 21:17:14 +0100 (CET)
Dirksen writes:
> <dtml-call "myMethod.manage_proxy('Manager')"> only ends in this error:
>
> You are not authorized to change myMethod because you do not have proxy roles.
>
> even though I'm calling the above statement in Manager role. Is it possible to do that?
It is a bit strange, but as a security feature, you can change
an object with a proxy role only, if you have *THAT PRECISE* role.
Give your Manager user this role and it should work.
In Zope 2.1.6 (which we use still in a production site),
this did apparently (I did not dig in and may have been simply confused)
not work. However, as Superuser, I could change the object.
Dieter