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 /doeditparams.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 'doeditparams.cgi')
-rwxr-xr-x | doeditparams.cgi | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doeditparams.cgi b/doeditparams.cgi index dd6214982..1df99f077 100755 --- a/doeditparams.cgi +++ b/doeditparams.cgi @@ -28,17 +28,16 @@ require "defparams.pl"; # Shut up misguided -w warnings about "used only once": use vars %::param, %::param_default, - @::param_list, - %::COOKIE; + @::param_list; 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("tweakparams")) { + print "<H1>Sorry, you aren't a member of the 'tweakparams' group.</H1>\n"; + print "And so, you aren't allowed to edit the parameters.\n"; exit; } |