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.

This commit is contained in:
endico%mozilla.org 2000-06-02 18:54:55 +00:00
Родитель 0307d81230
Коммит fc9e1aa63e
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -168,6 +168,12 @@ sub CheckCanChangeField {
"WHERE bug_id = $bugid");
($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 &&
IsOpenedState($newvalue)) {