diff options
author | Christian Pointner <equinox@spreadspace.org> | 2012-09-25 20:53:32 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2012-09-25 20:53:32 +0000 |
commit | 761222eb1133d5ba6d48785719e8ff3b343499aa (patch) | |
tree | 28f95907c2a71d0bb39ea4da7f7e2110e2e19fa2 /nzbget/download.pm | |
parent | added error messages (diff) |
admin can cancel any download
Diffstat (limited to 'nzbget/download.pm')
-rw-r--r-- | nzbget/download.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nzbget/download.pm b/nzbget/download.pm index 4609aee..505df9b 100644 --- a/nzbget/download.pm +++ b/nzbget/download.pm @@ -49,12 +49,12 @@ sub get_download_table $user->obj->quota_used($user->obj->quota_used+$total); $user->obj->update(); } - my $cancel; + my $cancel; if ($download->processing == 1) - { + { $html.=Tr(td([$download->category->name,$download->name,$download->owner->name,$total,'unpacking',''])); } else { - $cancel=a({href=>'cancel?id='.$value->{NZBNicename}},'Abbrechen') if ($download->owner->owner_id() eq $user->get_id()); + $cancel=a({href=>'cancel?id='.$value->{NZBNicename}},'Abbrechen') if (($download->owner->owner_id() eq $user->get_id()) or ($user->is_admin)); $html.= Tr(td([$download->category->name,$download->name,$download->owner->name,$total,$percent.'%',$cancel])); } #foreach my $key (keys %$value) |