From e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 17 Aug 2011 00:45:22 +0200 Subject: Bug 678970: Use $user and $cgi instead of Bugzilla->user and Bugzilla->cgi r=timello a=LpSolit --- editvalues.cgi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'editvalues.cgi') diff --git a/editvalues.cgi b/editvalues.cgi index 53ea78512..1a8d89531 100755 --- a/editvalues.cgi +++ b/editvalues.cgi @@ -47,7 +47,7 @@ sub display_field_values { ###################################################################### # require the user to have logged in -Bugzilla->login(LOGIN_REQUIRED); +my $user = Bugzilla->login(LOGIN_REQUIRED); my $dbh = Bugzilla->dbh; my $cgi = Bugzilla->cgi; @@ -60,10 +60,10 @@ $vars->{'doc_section'} = 'edit-values.html'; print $cgi->header(); -Bugzilla->user->in_group('admin') || - ThrowUserError('auth_failure', {group => "admin", - action => "edit", - object => "field_values"}); +$user->in_group('admin') + || ThrowUserError('auth_failure', {group => "admin", + action => "edit", + object => "field_values"}); # # often-used variables -- cgit v1.2.3-24-g4f1b