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

staff users are allowed to change vnc settings of instances

This commit is contained in:
Ing. Jan Krcmar 2019-04-09 11:19:31 +02:00 committed by catborise
parent 311f1b793e
commit 52fbe95e30
2 changed files with 3 additions and 3 deletions

View file

@ -645,7 +645,7 @@ def instance(request, compute_id, vname):
addlogmsg(request.user.username, instance.name, msg)
return HttpResponseRedirect(request.get_full_path() + '#xmledit')
if request.user.is_superuser or userinstance.is_vnc:
if request.user.is_superuser or request.user.is_staff or userinstance.is_vnc:
if 'set_console_passwd' in request.POST:
if request.POST.get('auto_pass', ''):
passwd = randomPasswd()