summaryrefslogtreecommitdiffstats
path: root/editvalues.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-08-17 00:45:22 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-08-17 00:45:22 +0200
commite15dcf488f8bbf1fef2cd0a7001385f7a95e8d59 (patch)
tree4a46e8d94f53faf98923ca7509704f5e1fdec541 /editvalues.cgi
parent7a8598938d6976acb5f6bde6c86be8b65d1df8da (diff)
downloadbugzilla-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.gz
bugzilla-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.xz
Bug 678970: Use $user and $cgi instead of Bugzilla->user and Bugzilla->cgi
r=timello a=LpSolit
Diffstat (limited to 'editvalues.cgi')
-rwxr-xr-xeditvalues.cgi10
1 files changed, 5 insertions, 5 deletions
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