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 --- editsettings.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'editsettings.cgi') diff --git a/editsettings.cgi b/editsettings.cgi index 742bd7176..883666074 100755 --- a/editsettings.cgi +++ b/editsettings.cgi @@ -21,7 +21,6 @@ use lib qw(.); use Bugzilla; use Bugzilla::Constants; -use Bugzilla::User; use Bugzilla::User::Setting; require "globals.pl"; @@ -69,12 +68,12 @@ sub SaveSettings{ ### Live code ### ################### -Bugzilla->login(LOGIN_REQUIRED); +my $user = Bugzilla->login(LOGIN_REQUIRED); my $cgi = Bugzilla->cgi; print $cgi->header; -UserInGroup("tweakparams") +$user->in_group('tweakparams') || ThrowUserError("auth_failure", {group => "tweakparams", action => "modify", object => "settings"}); -- cgit v1.2.3-24-g4f1b