ZClass proxy roles - don't work?
I have a Product that contains several nested ZClasses. I'm trying to allow an anonymous user (actually a Xron object) to call a method on an inner class that will modify some object attributes. I have given the method a proxy role of Manager, but calling it still raises a login prompt. If I don't log in, I get 'not authorized to manage_changeProperties'. Any advice appreciated. (Anticipating one form of advice; yes, I really wish I had written the thing as a Python Product, and I'm trying to rewrite it properly in my Copious Free Time, and I'm never going to put a ZClass in production again.) Thanks -- Wade Leftwich Ithaca, NY
Wade Leftwich writes:
I have a Product that contains several nested ZClasses. I'm trying to allow an anonymous user (actually a Xron object) to call a method on an inner class that will modify some object attributes. I have given the method a proxy role of Manager, but calling it still raises a login prompt. If I don't log in, I get 'not authorized to manage_changeProperties'. You know, that a proxy role affects only the code executed directly in the executable. It has no effect in calls done in the executable: proxy roles are not inherited by the callee.
Dieter
On Friday 02 August 2002 17:14, Dieter Maurer wrote:
Wade Leftwich writes:
I have a Product that contains several nested ZClasses. I'm trying to allow an anonymous user (actually a Xron object) to call a method on an inner class that will modify some object attributes. I have given the method a proxy role of Manager, but calling it still raises a login prompt. If I don't log in, I get 'not authorized to manage_changeProperties'.
You know, that a proxy role affects only the code executed directly in the executable. It has no effect in calls done in the executable: proxy roles are not inherited by the callee.
Dieter
No, I didn't know that. In fact, I guess I had the opposite so firmly lodged in my mind that I didn't even try assigning proxy roles to called methods. How embarrassing. Thanks Dieter. -- Wade
participants (2)
-
Dieter Maurer -
Wade Leftwich