I have problem with my python script.
I want to check if a user has a the "manager" role, and add an option in a menu
in this case
Here is my script:
for el in rep.objectValues('Folder'):
if el.id=="Administration" and AUTHENTICATED_USER.has_role(self,
#add option to the menu
but Zope displays me an error:
Error Type: NameError
Error Value: global name 'AUTHENTICATED_USER' is not defined
I don't know what is the problem.
I use sessionUserFolder (a Zope products), so I think it could be the reason of
Thank you for your help
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -