diff templates/minimal/html/_generic.index.html @ 3117:460eb0209a9e

Permissions improvements. - have Permissions only test the check function if itemid is suppled - modify index templates to check for row-level Permission - more documentation of security mechanisms - better unit tests for security mechanisms
author Richard Jones <richard@users.sourceforge.net>
date Fri, 28 Jan 2005 03:51:19 +0000
parents 5f0b10bf7ba1
children 902b016abbd1
line wrap: on
line diff
--- a/templates/minimal/html/_generic.index.html	Wed Jan 26 17:27:21 2005 +0000
+++ b/templates/minimal/html/_generic.index.html	Fri Jan 28 03:51:19 2005 +0000
@@ -49,13 +49,14 @@
  <tr>
   <th tal:repeat="property context/propnames" tal:content="property">&nbsp;</th>
  </tr>
- <tr tal:repeat="item context/list"
-  tal:attributes="class python:['normal', 'alt'][repeat['item'].index%6/3]"
- >
+ <tal:block repeat="item context/list">
+ <tr tal:condition="item/is_view_ok"
+     tal:attributes="class python:['normal', 'alt'][repeat['item'].index%6/3]">
   <td tal:repeat="property context/propnames"
    tal:content="python: item[property] or default"
   >&nbsp;</td>
- </tr>
+  </tr>
+ </tal:block>
 </table>
 
 </td>

Roundup Issue Tracker: http://roundup-tracker.org/