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 /process_bug.cgi | |
parent | 7a8598938d6976acb5f6bde6c86be8b65d1df8da (diff) | |
download | bugs-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar bugs-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.gz bugs-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.bz2 bugs-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.xz bugs-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.zip |
Bug 678970: Use $user and $cgi instead of Bugzilla->user and Bugzilla->cgi
r=timello a=LpSolit
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
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; } } |