From: lpsolit%gmail.com <> Date: Tue, 17 Jul 2007 04:47:39 +0000 (+0000) Subject: Bug 388311: Users with no privs see "Reopen bug" on closed bugs even if they are... X-Git-Tag: bugzilla-3.1.2~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a15632fbba9ec4202a9063e696d19cc4ae88b40;p=thirdparty%2Fbugzilla.git 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 r=mkanat a=LpSolit --- diff --git a/template/en/default/bug/knob.html.tmpl b/template/en/default/bug/knob.html.tmpl index 257ce4d94b..a02bc20e39 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"