diff --git a/omeroweb/webadmin/templates/webadmin/myaccount.html b/omeroweb/webadmin/templates/webadmin/myaccount.html index e225a5945f..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 %} @@ -308,7 +310,6 @@
{% endif %} -
diff --git a/omeroweb/webadmin/views.py b/omeroweb/webadmin/views.py index 1795680bce..23f03fd1e5 100644 --- a/omeroweb/webadmin/views.py +++ b/omeroweb/webadmin/views.py @@ -1037,6 +1037,7 @@ def my_account(request, action=None, conn=None, **kwargs): isLdapUser, hasAvatar, ) = prepare_experimenter(conn) + isSudo = conn.getEventContext().sudoerId is not None try: defaultGroupId = defaultGroup.id except Exception: @@ -1092,6 +1093,7 @@ def my_account(request, action=None, conn=None, **kwargs): context = { "form": form, "ldapAuth": isLdapUser, + "isSudo": isSudo, "experimenter": experimenter, "ownedGroups": ownedGroups, "password_form": password_form,