File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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+
38483858Some older trackers might also want to change the ``page.html``
38493859template as follows::
38503860
You can’t perform that action at this time.
0 commit comments