20 Apr
2005
20 Apr
'05
2:30 p.m.
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, ["Manager"]): #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 the problem. Thank you for your help