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 --- editversions.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'editversions.cgi') diff --git a/editversions.cgi b/editversions.cgi index cf2303e5f..66e81b864 100755 --- a/editversions.cgi +++ b/editversions.cgi @@ -35,7 +35,6 @@ require "globals.pl"; use Bugzilla::Constants; use Bugzilla::Config qw(:DEFAULT $datadir); -use Bugzilla::User; use Bugzilla::Product; use Bugzilla::Version; @@ -48,11 +47,11 @@ my $dbh = Bugzilla->dbh; # Preliminary checks: # -Bugzilla->login(LOGIN_REQUIRED); +my $user = Bugzilla->login(LOGIN_REQUIRED); print $cgi->header(); -UserInGroup("editcomponents") +$user->in_group('editcomponents') || ThrowUserError("auth_failure", {group => "editcomponents", action => "edit", object => "versions"}); -- cgit v1.2.3-65-gdbad