RE: [Zope] Getting user roles
-----Original Message----- From: Daniel G. Rusch [mailto:drusch@globalcrossing.com] Sent: Tuesday, November 16, 1999 11:38 AM To: zope@zope.org Subject: [Zope] Getting user roles
We are trying to get all the user roles for a given user (someone).
we tried this:
<dtml-var "acl_users.get_local_roles_for_userid('someone')">
all it does is returns an empty set.
P.S. Someone does exist and someone does have roles.
Any thoughts,
<dtml-var "AUTHENTICATED_USER.getRoles()"> -Michel
The problem with the code below is that you must be logged in as the person you want to get the roles of. If for example an administrator needed to get the roles of a specific user or group of users the the code below would not work. <dtml-var "AUTHENTICATED_USER.getRoles()"> Dan
Daniel G. Rusch <drusch@globalcrossing.com> wrote:
The problem with the code below is that you must be logged in as the person you want to get the roles of. If for example an administrator needed to get the roles of a specific user or group of users the the code below would not work.
<dtml-var "AUTHENTICATED_USER.getRoles()">
This worked for me: <dtml-var "acl_users.getUser('someone').getRoles()"> Mike.
participants (3)
-
Daniel G. Rusch -
Michel Pelletier -
Mike Pelletier