summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprocess_bug.cgi14
1 files changed, 8 insertions, 6 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 7a6e2bbc5..b69b3da27 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -403,12 +403,14 @@ sub CheckCanChangeField {
}
# Allow anyone with "canconfirm" to confirm bugs.
- if (($field eq "bug_status") &&
- ($oldvalue eq $::unconfirmedstate) &&
- IsOpenedState($newvalue) &&
- $UserInCanConfirmGroupSet)
- {
- return 1;
+ if ($UserInCanConfirmGroupSet) {
+ if (($field eq "canconfirm") ||
+ (($field eq "bug_status") &&
+ ($oldvalue eq $::unconfirmedstate) &&
+ IsOpenedState($newvalue)))
+ {
+ return 1;
+ }
}
# START DO_NOT_CHANGE