Hi,
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
Andreas Jung [EMAIL PROTECTED] wrote:
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