[Zope] has_permission for arbitrary user
Mark N. Gibson
mark@kaivo.com
Thu, 06 Sep 2001 16:48:21 -0600
I'm basically trying to do this:
<dtml-if expr="acl_users.getUser('someuser').has_permission('Change DTML
Document',this())">
Yes
<dtml-else>
No
</dtml-if>
Unfortunately, has_permissions seems to be implented to call
has_permission on the currently logged in user; i.e. AUTHENTICATED_USER.
So the question is, how do I determine if an arbitrary user (not the
logged in user) has a certain permission on a certain object?
Thanks,
Mark
---
Mark Gibson
Kaivo, Inc.
mark@kaivo.com