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 --- editparams.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'editparams.cgi') diff --git a/editparams.cgi b/editparams.cgi index 264e991a4..8924a0edc 100755 --- a/editparams.cgi +++ b/editparams.cgi @@ -27,17 +27,16 @@ use lib "."; use Bugzilla::Constants; use Bugzilla::Config qw(:DEFAULT :admin); -use Bugzilla::User; require "globals.pl"; -Bugzilla->login(LOGIN_REQUIRED); +my $user = Bugzilla->login(LOGIN_REQUIRED); my $template = Bugzilla->template; print Bugzilla->cgi->header(); -UserInGroup("tweakparams") +$user->in_group('tweakparams') || ThrowUserError("auth_failure", {group => "tweakparams", action => "modify", object => "parameters"}); -- cgit v1.2.3-24-g4f1b