mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-06 04:19:40 +00:00
user.is_staff can do resize of all machines
This commit is contained in:
@@ -446,7 +446,7 @@ def instance(request, compute_id, vname):
|
||||
msg = _("Please shutdow down your instance and then try again")
|
||||
error_messages.append(msg)
|
||||
|
||||
if 'resize' in request.POST and (request.user.is_superuser or userinstace.is_change):
|
||||
if 'resize' in request.POST and (request.user.is_superuser or request.user.is_staff or userinstace.is_change):
|
||||
new_vcpu = request.POST.get('vcpu', '')
|
||||
new_cur_vcpu = request.POST.get('cur_vcpu', '')
|
||||
new_memory = request.POST.get('memory', '')
|
||||
|
||||
Reference in New Issue
Block a user