diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-15 17:58:40 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-15 17:58:40 +0100 |
commit | e2127b11df6aa712d532b6aeabd9a33e405ddc75 (patch) | |
tree | f10ea56efb4bd7eae64c2b2c5cabedfaa5ac5d7c /pyblackbird_cc | |
parent | cf0ceb545421c58acc9478fc376b51065f97e532 (diff) |
Update wrap around is_staff condition for edit buttons
Diffstat (limited to 'pyblackbird_cc')
-rw-r--r-- | pyblackbird_cc/templates/resources/resource_list.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyblackbird_cc/templates/resources/resource_list.html b/pyblackbird_cc/templates/resources/resource_list.html index dc9c7ba..8d053ff 100644 --- a/pyblackbird_cc/templates/resources/resource_list.html +++ b/pyblackbird_cc/templates/resources/resource_list.html @@ -10,7 +10,7 @@ <div class="row"> <div class="col"> <div class="d-flex flex-row justify-content-between"> - {% if request.user.is_authenticated %} + {% if request.user.is_authenticated and request.user.is_staff %} <div> <a class="btn btn-primary" href="{% url 'resources:create_resource' %} ">Add a new resource</a> </div> |