aboutsummaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2004-07-17 23:09:28 +0000
committergerv%gerv.net <>2004-07-17 23:09:28 +0000
commitd52f5469628c44ab012696bb0a9527a40cd69884 (patch)
treea527e637934d071c9190cca9670d6be221f1c3f0 /process_bug.cgi
parent301eb1deabcbab02c7f6673635d1835912e7bd94 (diff)
downloadbugs-d52f5469628c44ab012696bb0a9527a40cd69884.tar
bugs-d52f5469628c44ab012696bb0a9527a40cd69884.tar.gz
bugs-d52f5469628c44ab012696bb0a9527a40cd69884.tar.bz2
bugs-d52f5469628c44ab012696bb0a9527a40cd69884.tar.xz
bugs-d52f5469628c44ab012696bb0a9527a40cd69884.zip
Bug 240093 - get canconfirm working again. Patch by gerv; r=joel, a=justdave.
Diffstat (limited to 'process_bug.cgi')
-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