summaryrefslogtreecommitdiffstats
path: root/doeditowners.cgi
diff options
context:
space:
mode:
authorterry%netscape.com <>1999-03-12 01:30:51 +0100
committerterry%netscape.com <>1999-03-12 01:30:51 +0100
commit6f3e5c8018709ef5a43427c5259e24372eefe7c3 (patch)
treeb2cbd1c250a035299e5bde3402aa1a0aa26b6492 /doeditowners.cgi
parent5b2ed378cc135b0f3b94d960824c65e43365e247 (diff)
downloadbugzilla-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 'doeditowners.cgi')
-rwxr-xr-xdoeditowners.cgi10
1 files changed, 3 insertions, 7 deletions
diff --git a/doeditowners.cgi b/doeditowners.cgi
index b09d7298b..540b4bfb0 100755
--- a/doeditowners.cgi
+++ b/doeditowners.cgi
@@ -24,17 +24,13 @@ use strict;
require "CGI.pl";
-# Shut up misguided -w warnings about "used only once":
-use vars %::COOKIE;
-
-
confirm_login();
print "Content-type: text/html\n\n";
-if (Param("maintainer") ne $::COOKIE{'Bugzilla_login'}) {
- print "<H1>Sorry, you aren't the maintainer of this system.</H1>\n";
- print "And so, you aren't allowed to edit the parameters of it.\n";
+if (!UserInGroup("editcomponents")) {
+ print "<H1>Sorry, you aren't a member of the 'editcomponents' group.</H1>\n";
+ print "And so, you aren't allowed to edit the owners.\n";
exit;
}