Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit bfa62e333d944e588fc03852edf9d9fe2af69a29 Author: Miroslav Suchý msuchy@redhat.com Date: Tue Feb 11 15:14:51 2014 +0100
1063311 - admin should be able to delete task
.../templates/coprs/detail/_builds_table.html | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/coprs_frontend/coprs/templates/coprs/detail/_builds_table.html b/coprs_frontend/coprs/templates/coprs/detail/_builds_table.html index 8901140..d2364d9 100644 --- a/coprs_frontend/coprs/templates/coprs/detail/_builds_table.html +++ b/coprs_frontend/coprs/templates/coprs/detail/_builds_table.html @@ -33,13 +33,13 @@ <tr class="details"> <td colspan=6 class="end"> <div> - {% if g.user and g.user == build.user %} + {% if g.user and g.user.can_build_in(copr) %} {{ copr_build_cancel_form(build) }} {% endif %} {% if g.user and g.user.can_build_in(copr) %} {{ copr_build_repeat_form(build) }} {% endif %} - {% if g.user and g.user == build.user %} + {% if g.user and g.user.can_edit(copr) %} {{ copr_build_delete_form(build) }} {% endif %} <div>
copr-commits@lists.fedorahosted.org