From 6f3e5c8018709ef5a43427c5259e24372eefe7c3 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" <> Date: Fri, 12 Mar 1999 00:30:51 +0000 Subject: 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. --- process_bug.cgi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'process_bug.cgi') 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", -- cgit v1.2.3-24-g4f1b