From c31314592160c92097cfad7d9eb686d8d3faf7a6 Mon Sep 17 00:00:00 2001 From: Andreas Knab Date: Tue, 12 Dec 2023 14:17:09 +0100 Subject: [PATCH] Make form inert in sudo mode --- omeroweb/webadmin/templates/webadmin/myaccount.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/omeroweb/webadmin/templates/webadmin/myaccount.html b/omeroweb/webadmin/templates/webadmin/myaccount.html index 9857564c43..f78381f69e 100644 --- a/omeroweb/webadmin/templates/webadmin/myaccount.html +++ b/omeroweb/webadmin/templates/webadmin/myaccount.html @@ -280,9 +280,11 @@ -
{% csrf_token %} + {% csrf_token %} -
+
{% for field in form %} {% if field.errors %}
{{ field.errors }}
{% endif %} @@ -293,7 +295,7 @@ {% if ldapAuth %}
{{ ldapAuth }}
- {% elif not isSudo %} + {% else %}
@@ -308,9 +310,7 @@
{% endif %} - {% if not isSudo %} - {% endif %}