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:
parent
311f1b793e
commit
52fbe95e30
2 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue