diff doc/customizing.txt @ 3081:b248c058eb93 maint-0.7

*** empty log message ***
author Richard Jones <richard@users.sourceforge.net>
date Wed, 05 Jan 2005 22:43:44 +0000
parents 6fbc8633a4c8
children a37e657057c0
line wrap: on
line diff
--- a/doc/customizing.txt	Wed Jan 05 22:28:13 2005 +0000
+++ b/doc/customizing.txt	Wed Jan 05 22:43:44 2005 +0000
@@ -3845,6 +3845,16 @@
      db.issue.audit('retire', audit_provisionaluser)
      db.issue.audit('restore', audit_provisionaluser)
 
+
+If you wish to also prevent users from *viewing* issues they didn't create,
+the following ``tal:condition`` may be performed in a template (eg.
+``issue.item.html``) to check whether the user is allowed to edit the
+current issue::
+
+ tal:condition="python:request.user.hasPermission('Edit')
+       or (request.user.hasPermission('Edit Own') and context.creator ==
+       request.user.id)"
+
 Some older trackers might also want to change the ``page.html``
 template as follows::
 

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