From 8a8b0e505bab6ea4d631e7c63dad9260ff7e8936 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 21 Mar 2018 19:53:53 +0000 Subject: Improve permission checking in work queue --- app/templates/todo.html | 52 ++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 24 deletions(-) (limited to 'app/templates') diff --git a/app/templates/todo.html b/app/templates/todo.html index edb7d4a..35aee9a 100644 --- a/app/templates/todo.html +++ b/app/templates/todo.html @@ -5,29 +5,33 @@ {% endblock %} {% block content %} -

Packages Awaiting Approval

- - {% endfor %} - + {% if canApproveNew %} +

Packages Awaiting Approval

+ + {% endfor %} + + {% endif %} -

Releases Awaiting Approval

- - {% endfor %} - + {% if canApproveRel %} +

Releases Awaiting Approval

+ + {% endfor %} + + {% endif %} {% endblock %} -- cgit v1.2.3