[Zope] user permission on folder documents
Winnie Au
Winnie.Au@team.ozemail.com.au
Mon, 13 Aug 2001 10:39:06 +1000
Hi there,
I want to create an admin page for supervisor to grant permissions to fellow
workers in a matrix type screen. What I have done is created a list of users
underneath top folder, then created a list of projects and assigned
permission for update to different roles. So in the codes, I tried to loop
through all the users, then find out the permission for every projects, but
doesn't seem to pickup the user within the second loop.
<dtml-in "WebDevelTest.acl_users.getUserNames()">
looping user: <dtml-var sequence-item><br />
<dtml-let userName=sequence-item>
<dtml-in "WebRoot.objectValues('Folder')">
in folder: <dtml-var id> access allowed?
<dtml-if
expr="acl_users.getUser(userName).has_permission('Change DTML Document',
this())">
Yes
<dtml-else>
No
</dtml-if>
<br />
</dtml-in>
</dtml-let>
</dtml-in>
Thanks in advance.
Cheers,
Winnie