diff options
author | terry%netscape.com <> | 1999-03-12 01:30:51 +0100 |
---|---|---|
committer | terry%netscape.com <> | 1999-03-12 01:30:51 +0100 |
commit | 6f3e5c8018709ef5a43427c5259e24372eefe7c3 (patch) | |
tree | b2cbd1c250a035299e5bde3402aa1a0aa26b6492 /process_bug.cgi | |
parent | 5b2ed378cc135b0f3b94d960824c65e43365e247 (diff) | |
download | bugzilla-6f3e5c8018709ef5a43427c5259e24372eefe7c3.tar.gz bugzilla-6f3e5c8018709ef5a43427c5259e24372eefe7c3.tar.xz |
Added 'groups' stuff, where we have different group bits that we can
put on a person or on a bug. Some of the group bits control access to bugzilla
features. And a person can't access a bug unless he has every group bit set
that is also set on the bug.
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index f68b7e186..fc425a199 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -120,6 +120,22 @@ sub ChangeResolution { } +my $foundbit = 0; +foreach my $b (grep(/^bit-\d*$/, keys %::FORM)) { + if (!$foundbit) { + $foundbit = 1; + DoComma(); + $::query .= "groupset = 0"; + } + if ($::FORM{$b}) { + my $v = substr($b, 4); + $::query .= "+ $v"; # Carefully written so that the math is + # done by MySQL, which can handle 64-bit math, + # and not by Perl, which I *think* can not. + } +} + + foreach my $field ("rep_platform", "priority", "bug_severity", "url", "summary", "component", "bug_file_loc", "short_desc", "product", "version", "component", "op_sys", |