From bea6b1454beee24705bd6467f52a285ff37221ba Mon Sep 17 00:00:00 2001 From: catborise Date: Mon, 13 Mar 2023 11:22:40 +0300 Subject: [PATCH] fix grouped non grouped instance view --- instances/templates/allinstances.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/instances/templates/allinstances.html b/instances/templates/allinstances.html index 095d99c..457d9f6 100644 --- a/instances/templates/allinstances.html +++ b/instances/templates/allinstances.html @@ -25,10 +25,12 @@ {% endif %} {% endfor %}
- {% if app_settings.VIEW_INSTANCES_LIST_STYLE == 'grouped' and request.user.is_superuser or 'instances.view_instances' in perms %} - {% include 'allinstances_index_grouped.html' %} - {% else %} - {% include 'allinstances_index_nongrouped.html' %} + {% if 'instances.view_instances' in perms %} + {% if app_settings.VIEW_INSTANCES_LIST_STYLE == 'grouped' and request.user.is_superuser %} + {% include 'allinstances_index_grouped.html' %} + {% else %} + {% include 'allinstances_index_nongrouped.html' %} + {% endif %} {% endif %}
{% endblock content %}