diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-17 00:45:22 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-17 00:45:22 +0200 |
commit | e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59 (patch) | |
tree | 4a46e8d94f53faf98923ca7509704f5e1fdec541 /editvalues.cgi | |
parent | Bug 675603: Remove obsolete code from Bugzilla/DB/Oracle.pm (diff) | |
download | bugzilla-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.gz bugzilla-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.bz2 bugzilla-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.zip |
Bug 678970: Use $user and $cgi instead of Bugzilla->user and Bugzilla->cgi
r=timello a=LpSolit
Diffstat (limited to 'editvalues.cgi')
-rwxr-xr-x | editvalues.cgi | 10 |
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 |