Bug 678970: Use $user and $cgi instead of Bugzilla->user and Bugzilla->cgi

r=timello a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@262672 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org
2011-08-16 23:02:57 +00:00
parent ac6943b432
commit ba97af1e21
18 changed files with 50 additions and 52 deletions

View File

@@ -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