summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/knob.html.tmpl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-07-17 06:47:39 +0200
committerlpsolit%gmail.com <>2007-07-17 06:47:39 +0200
commit7a15632fbba9ec4202a9063e696d19cc4ae88b40 (patch)
tree6742ac1988c2af440171ff3ad9ff08d5c7a14b4e /template/en/default/bug/knob.html.tmpl
parente75c47801129f9f2639787302489fedb3aa78465 (diff)
downloadbugzilla-7a15632fbba9ec4202a9063e696d19cc4ae88b40.tar.gz
bugzilla-7a15632fbba9ec4202a9063e696d19cc4ae88b40.tar.xz
Bug 388311: Users with no privs see "Reopen bug" on closed bugs even if they are not the reporter - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
Diffstat (limited to 'template/en/default/bug/knob.html.tmpl')
-rw-r--r--template/en/default/bug/knob.html.tmpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/template/en/default/bug/knob.html.tmpl b/template/en/default/bug/knob.html.tmpl
index 257ce4d94..a02bc20e3 100644
--- a/template/en/default/bug/knob.html.tmpl
+++ b/template/en/default/bug/knob.html.tmpl
@@ -32,8 +32,7 @@
[% FOREACH bug_status = bug.status.can_change_to %]
[% NEXT IF bug.isunconfirmed && bug_status.is_open && !bug.user.canconfirm %]
[% NEXT IF bug.isopened && !bug.isunconfirmed && bug_status.is_open && !bug.user.canedit %]
- [% NEXT IF !bug_status.is_open && !bug.user.canedit && !bug.user.isreporter %]
- [% NEXT IF !bug_status.is_open && bug_status.is_open && !bug.user.canedit && !bug.user.isreporter %]
+ [% NEXT IF (!bug_status.is_open || !bug.isopened) && !bug.user.canedit && !bug.user.isreporter %]
[%# Special hack to only display UNCO or REOP when reopening, but not both;
# for compatibility with older versions. %]
[% NEXT IF !bug.isopened && (bug.everconfirmed && bug_status.name == "UNCONFIRMED"