[Zope] List of Folders

Michel Pelletier michel@digicool.com
Fri, 12 Nov 1999 12:09:08 -0500


> 
> I want to view a menu with "Admin, Manage and Kunden" in
> my navigationbar. I did the follwing code:
> 
>           <dtml-with eCHECK>
> "menutitle"--><!--#else--><!--#var title_or_id--></A><!--#/if-->
>             <dtml-in "eCHECK.objectValues(['Folder'])">
>               <dtml-let item=sequence-item>
>                 <dtml-if "AUTHENTICATED_USER.has_permission('View',
> item)">
>                   <BR><A HREF="<dtml-var absolute_url>"><!--#if
> "hasProperty('menutitle')"--><!--#var "menutitle"--><!--#else--><!--#var
> title_or_id--></A><!--#/if-->
>                 </dtml-if>
>               </dtml-let>
>             </dtml-in>
>           </dtml-with>
> 
> When I log in as superuser it works, but when I log in as
> normal user with a local role authentication fails, although
> the user has ALL ( nd i mean all) permissions on eCHECK, Admin,
> Manage and Kunden.

Use <dtml-in "eCHECK.objectValues(['Folder'])" skip_unauthorized=1>

-Michel