Commit 2a5ba50f authored by endico%mozilla.org's avatar endico%mozilla.org

allow the reporter of a bug to change the status of a bug (e.g. reopen it) even…

allow the reporter of a bug to change the status of a bug (e.g. reopen it) even if they don't have the editbug bit set.
parent 5c287653
...@@ -168,6 +168,12 @@ sub CheckCanChangeField { ...@@ -168,6 +168,12 @@ sub CheckCanChangeField {
"WHERE bug_id = $bugid"); "WHERE bug_id = $bugid");
($reporterid, $ownerid, $qacontactid) = (FetchSQLData()); ($reporterid, $ownerid, $qacontactid) = (FetchSQLData());
} }
# Let reporter change bug status, even if they can't edit bugs.
# If reporter can't re-open their bug they will just file a duplicate.
# While we're at it, let them close their own bugs as well.
if ( ($f eq "bug_status") && ($whoid eq $reporterid) ) {
return 1;
}
if ($f eq "bug_status" && $newvalue ne $::unconfirmedstate && if ($f eq "bug_status" && $newvalue ne $::unconfirmedstate &&
IsOpenedState($newvalue)) { IsOpenedState($newvalue)) {
......
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