1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Add permission can view instances

This commit is contained in:
Info-IIG 2022-06-13 09:58:46 +02:00
parent 12f0c70069
commit c817d3e61a
4 changed files with 5 additions and 4 deletions

View file

@ -25,7 +25,7 @@
{% endif %}
{% endfor %}
<div class="col-lg-12">
{% if app_settings.VIEW_INSTANCES_LIST_STYLE == 'grouped' and request.user.is_superuser %}
{% 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' %}