Skip to content

Commit ee403ff

Browse files
author
Richard Jones
committed
*** empty log message ***
1 parent c086dba commit ee403ff

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/customizing.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3845,6 +3845,16 @@ Finally we add a new *auditor* to the ``detectors`` directory called
38453845
db.issue.audit('retire', audit_provisionaluser)
38463846
db.issue.audit('restore', audit_provisionaluser)
38473847

3848+
3849+
If you wish to also prevent users from *viewing* issues they didn't create,
3850+
the following ``tal:condition`` may be performed in a template (eg.
3851+
``issue.item.html``) to check whether the user is allowed to edit the
3852+
current issue::
3853+
3854+
tal:condition="python:request.user.hasPermission('Edit')
3855+
or (request.user.hasPermission('Edit Own') and context.creator ==
3856+
request.user.id)"
3857+
38483858
Some older trackers might also want to change the ``page.html``
38493859
template as follows::
38503860

0 commit comments

Comments
 (0)