]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 388311: Users with no privs see "Reopen bug" on closed bugs even if they are...
authorlpsolit%gmail.com <>
Tue, 17 Jul 2007 04:47:39 +0000 (04:47 +0000)
committerlpsolit%gmail.com <>
Tue, 17 Jul 2007 04:47:39 +0000 (04:47 +0000)
template/en/default/bug/knob.html.tmpl

index 257ce4d94b773bc11178530c079ca98c3a55d9e7..a02bc20e39f5c617a3a3bee00cb92613b68d1934 100644 (file)
@@ -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"