From 0e9fdfdcb1b423f9d26747d779bf3d368b92ced1 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 16 Sep 2005 05:01:56 +0000 Subject: Bug 304696: Replace UserInGroup() by $user->in_group() when checking user privs in edit*.cgi files - Patch by Frédéric Buclin r=mkanat a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doeditparams.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'doeditparams.cgi') diff --git a/doeditparams.cgi b/doeditparams.cgi index cfc21e23d..8d69f56bc 100755 --- a/doeditparams.cgi +++ b/doeditparams.cgi @@ -28,18 +28,17 @@ use lib qw(.); use Bugzilla; use Bugzilla::Constants; use Bugzilla::Config qw(:DEFAULT :admin $datadir); -use Bugzilla::User; require "globals.pl"; -Bugzilla->login(LOGIN_REQUIRED); +my $user = Bugzilla->login(LOGIN_REQUIRED); my $cgi = Bugzilla->cgi; my $template = Bugzilla->template; print $cgi->header(); -UserInGroup("tweakparams") +$user->in_group('tweakparams') || ThrowUserError("auth_failure", {group => "tweakparams", action => "modify", object => "parameters"}); -- cgit v1.2.3-24-g4f1b