[Zope] has_permission for arbitrary user

Dieter Maurer dieter@handshake.de
Sat, 8 Sep 2001 00:28:13 +0200 (CEST)


Mark N. Gibson writes:
 > <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.
I doubt this very much!

But "getUser" is probably protected.
You may consider using a proxie role...


Dieter