mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-03 19:09:39 +00:00
Add permission can view instances
This commit is contained in:
@@ -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' %}
|
||||
|
||||
Reference in New Issue
Block a user