7 Jul
2000
7 Jul
'00
4:19 p.m.
cvi <cvicneno@ltnb.lu> writes:
Hi, Thanks for your help, but I've got some problems with etcUserFolder because I don't know where I should put my password file. I'd also like to know how to use the variable that contains the role of the user, in a Python script. I know that to get the username, you must use the variable REQUEST.AUTHENTICATED_USER. Could you help me ?
THANKS A LOT FOR YOUR HELP.
You have two options: 1) To get a list of roles - <dtml-var "AUTHENTICATED_USER.getRoles()"> 2) To check if they have a specific role - <dtml-var "AUTHENTICATED_USER.has_role('role_name')"> Hope this helps. Richard PS. cvi I am sending this to the list because your email address does not work!
9404
Age (days ago)
9404
Last active (days ago)
0 comments
1 participants
participants (1)
-
Richard Taylor