27 Sep
2001
27 Sep
'01
7:43 a.m.
On Wed, 26 Sep 2001, Dieter Maurer wrote:
olpa@sybcom.de writes:
Blame me if this is already answered:
how to check if current role is Manager and how is the name of the authenticated user from within a Script (Python)... i.e. how to do AUTHENTICATED.has_role('Manager') and AUTHENTICATED_USER.getUserName() without passing AUTHENTICATED as argument. AUTHENTICATED_USER is a REQUEST member....
Thus, you can use "container.REQUEST.AUTHENTICATED_USER".
Dieter
danke! werde ich versuchen!