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

user.is_staff can do resize of all machines

This commit is contained in:
Ing. Jan KRCMAR 2017-10-05 07:58:01 +02:00
parent d4158a33ee
commit 2ef672ffb5
2 changed files with 2 additions and 2 deletions

View file

@ -318,7 +318,7 @@
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane tab-pane-bordered active" id="resizevm">
{% if request.user.is_superuser or userinstace.is_change %}
{% if request.user.is_superuser or request.user.is_staff or userinstace.is_change %}
<form class="form-horizontal" method="post" role="form">{% csrf_token %}
<p style="font-weight:bold;">{% trans "Logical host CPUs:" %} {{ vcpu_host }}</p>
<div class="form-group">