[Zope] Accessing the User properties from portal_membership tool

Karuneesh Bagga karuneesh.bagga at itpreneurs.com
Mon Aug 11 15:09:51 EDT 2003


Hi all,

I am developing a utility for admin type of user. The problem i am facing is
,the admin type of user is not able to access the properties of other
acl_users where as he is in a position to access his own properties and
change them. The Properties are stored in the portal_memberdata like user
email etc. Here is the code which is causing problem

 <div tal:define="purl here/portal_url;
                  mtool here/portal_membership;
                  member mtool/getAuthenticatedMember;
                 ">
The function  getAuthenticatedMember returns the member object by which i am
able to access the currently logged in user properties like his email etc.
Now what i want is that when a admin user has logged in, he should be in a
position to access the other acl_member's member object and acceess his
properties like email stored in portal_member data. The method something
like this :

 <div tal:define="purl here/portal_url;
                  mtool here/portal_membership;
                  member mtool/getAuthenticatedMember('memberid');
                 ">

Kindly answer as early as Possible. Its Urgent. Thanks in advance.


rgds
karuneesh





More information about the Zope mailing list