Commit 7a15632f authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 388311: Users with no privs see "Reopen bug" on closed bugs even if they are…

Bug 388311: Users with no privs see "Reopen bug" on closed bugs even if they are not the reporter - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
parent e75c4780
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment