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
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
participants (2)
-
Dieter Maurer -
Mark N. Gibson