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 --- process_bug.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index 382ee8b59..9ba03e277 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -216,7 +216,7 @@ else { # For each bug, we have to check if the user can edit the bug the product # is currently in, before we allow them to change anything. foreach my $bug (@bug_objects) { - if (!Bugzilla->user->can_edit_product($bug->product_obj->id) ) { + if (!$user->can_edit_product($bug->product_obj->id)) { ThrowUserError("product_edit_denied", { product => $bug->product }); } @@ -301,7 +301,7 @@ if (defined $cgi->param('newcc') } } else { @cc_add = $cgi->param('newcc'); - push(@cc_add, Bugzilla->user) if $cgi->param('addselfcc'); + push(@cc_add, $user) if $cgi->param('addselfcc'); # We came from show_bug which uses a select box to determine what cc's # need to be removed... @@ -378,7 +378,7 @@ foreach my $bug (@bug_objects) { # status, so we should inform the user about that. if (!is_open_state($new_status) && $changes->{'remaining_time'}) { $vars->{'message'} = "remaining_time_zeroed" - if Bugzilla->user->is_timetracker; + if $user->is_timetracker; } } -- cgit v1.2.3-24-g4f1b