Skip to content

Commit 81b96b6

Browse files
committed
fix listing vms for normal users
1 parent bfe7da1 commit 81b96b6

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

instances/templates/allinstances.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@
2424
{% endif %}
2525
{% endfor %}
2626
<div class="col-lg-12">
27-
{% if 'instances.view_instances' in perms %}
28-
{% if app_settings.VIEW_INSTANCES_LIST_STYLE == 'grouped' and request.user.is_superuser %}
29-
{% include 'allinstances_index_grouped.html' %}
30-
{% else %}
31-
{% include 'allinstances_index_nongrouped.html' %}
32-
{% endif %}
27+
{% if app_settings.VIEW_INSTANCES_LIST_STYLE == 'grouped' and request.user.is_superuser %}
28+
{% include 'allinstances_index_grouped.html' %}
29+
{% else %}
30+
{% include 'allinstances_index_nongrouped.html' %}
3331
{% endif %}
3432
</div>
3533
{% endblock content %}

instances/templates/allinstances_index_grouped.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
var rows = $('table tr');
9999
host_rows = rows.filter("[host='"+host+"']");
100100
host_rows.toggle();
101-
$("span[id='collapse_host_instances_"+host+"']").toggleClass("bi-chevron-down ").toggleClass("bi-chevron-up");
101+
$("span[id='collapse_host_instances_"+host+"']").toggleClass("bi bi-chevron-down ").toggleClass("bi bi-chevron-up");
102102
$("span[id='inst_count_badge_"+host+"']").toggleClass("d-none");
103103
}
104104
</script>

0 commit comments

Comments
 (0)