I created a PyScript through the ZMI:

from AccessControl import getSecurityManager()
print getSecurityManager().getUser().getRoles()
print getSecurityManager().getUser().getRolesInContext(context)
return printed

The script has the proxy role 'Manager'.

When I call the script as Anyonmous User then the output is always
('Anonymous',) for both calls. This happens with Zope 2.7.0, 2.7.6 and Zope 2.8.0. Shouldn't I see the Manager role in the output or am I just brain-dead today?


Attachment: pgpngVDYncfOy.pgp
Description: PGP signature

Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to