From eb1b1c4cdfd26210115f1dc4ce5f0e8c99fe5711 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Wed, 5 Jun 2024 16:49:53 +0200 Subject: templates: show Delete Image only as admin Hide the Delete Image in user mode using template conditionals. A non admin account should not have access to image deletion. --- ogcp/templates/images.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ogcp/templates') diff --git a/ogcp/templates/images.html b/ogcp/templates/images.html index c0b4359..c439e52 100644 --- a/ogcp/templates/images.html +++ b/ogcp/templates/images.html @@ -62,8 +62,10 @@ form="imagesForm" formaction="{{ url_for('action_image_info') }}" formmethod="get"> +{% if current_user.admin %} +{% endif %} {% if btn_back %}