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. --- editparams.cgi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'editparams.cgi') diff --git a/editparams.cgi b/editparams.cgi index 75c7500d7..0171860da 100755 --- a/editparams.cgi +++ b/editparams.cgi @@ -28,16 +28,15 @@ require "defparams.pl"; # Shut up misguided -w warnings about "used only once": use vars @::param_desc, - @::param_list, - %::COOKIE; + @::param_list; confirm_login(); print "Content-type: text/html\n\n"; -if (Param("maintainer") ne $::COOKIE{Bugzilla_login}) { - print "

Sorry, you aren't the maintainer of this system.

\n"; - print "And so, you aren't allowed to edit the parameters of it.\n"; +if (!UserInGroup("tweakparams")) { + print "

Sorry, you aren't a member of the 'tweakparams' group.

\n"; + print "And so, you aren't allowed to edit the parameters.\n"; exit; } -- cgit v1.2.3-24-g4f1b