Commit d52f5469 authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 240093 - get canconfirm working again. Patch by gerv; r=joel, a=justdave.

parent 301eb1de
...@@ -403,13 +403,15 @@ sub CheckCanChangeField { ...@@ -403,13 +403,15 @@ sub CheckCanChangeField {
} }
# Allow anyone with "canconfirm" to confirm bugs. # Allow anyone with "canconfirm" to confirm bugs.
if (($field eq "bug_status") && if ($UserInCanConfirmGroupSet) {
if (($field eq "canconfirm") ||
(($field eq "bug_status") &&
($oldvalue eq $::unconfirmedstate) && ($oldvalue eq $::unconfirmedstate) &&
IsOpenedState($newvalue) && IsOpenedState($newvalue)))
$UserInCanConfirmGroupSet)
{ {
return 1; return 1;
} }
}
# START DO_NOT_CHANGE # START DO_NOT_CHANGE
# $reporterid, $ownerid and $qacontactid are caches of the results of # $reporterid, $ownerid and $qacontactid are caches of the results of
......
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