[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_generic - index_html.pt:1.4

Florent Guillaume fg@nuxeo.com
Fri, 28 Jun 2002 17:13:54 -0400


Update of /cvs-repository/CMF/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv17726/CMFDefault/skins/zpt_generic

Modified Files:
	index_html.pt 
Log Message:
Fixed index_html to correctly filter out unauthorized subfolders
(Tracker #503).


=== CMF/CMFDefault/skins/zpt_generic/index_html.pt 1.3 => 1.4 ===
 
   <ul>
-   <li tal:repeat="item items"> 
+   <li tal:repeat="item items">
     <a href="item_url" tal:attributes="href item/absolute_url"><img
       align="middle" border="0"
       tal:attributes="src   string:${item/portal_url}/${item/getIcon};
@@ -77,7 +77,7 @@
   <h4> Related Resources </h4>
 
   <ul>
-   <li tal:repeat="item items"> 
+   <li tal:repeat="item items">
     <a href="item_url" tal:attributes="href item/absolute_url"><img
       align="middle" border="0"
       tal:attributes="src   string:${item/portal_url}/${item/getIcon};
@@ -96,14 +96,15 @@
   </div>
 
 
-  <div tal:define="items python: here.contentValues(
+  <div tal:define="raw_items python: here.contentValues(
                             filter={ 'Type': 'Folder' } );
+                   items python: auth_filter( raw_items, skip='' );
                   ">
   <div tal:condition="items">
   <h4> Folders </h4>
 
   <ul>
-   <li tal:repeat="item items"> 
+   <li tal:repeat="item items">
     <a href="item_url" tal:attributes="href item/absolute_url"><img
       align="middle" border="0"
       tal:attributes="src   string:${item/portal_url}/${item/getIcon};