mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 15:15:22 +00:00
Fixed access without admins prermission
This commit is contained in:
parent
7c5b606538
commit
e54fd13e9a
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@ def storage(request, compute_id, pool):
|
|||
if not request.user.is_authenticated():
|
||||
return HttpResponseRedirect(reverse('index'))
|
||||
|
||||
if not request.user.is_superuser:
|
||||
return HttpResponseRedirect(reverse('index'))
|
||||
|
||||
def handle_uploaded_file(path, f_name):
|
||||
target = path + '/' + str(f_name)
|
||||
destination = open(target, 'wb+')
|
||||
|
|
Loading…
Reference in a new issue