mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 07:08:05 +00:00
Add logs and block for templates
This commit is contained in:
@@ -16,6 +16,9 @@ def interfaces(request, compute_id):
|
||||
if not request.user.is_authenticated():
|
||||
return HttpResponseRedirect(reverse('index'))
|
||||
|
||||
if not request.user.is_superuser:
|
||||
return HttpResponseRedirect(reverse('index'))
|
||||
|
||||
ifaces_all = []
|
||||
error_messages = []
|
||||
compute = Compute.objects.get(id=compute_id)
|
||||
@@ -60,6 +63,9 @@ def interface(request, compute_id, iface):
|
||||
if not request.user.is_authenticated():
|
||||
return HttpResponseRedirect(reverse('index'))
|
||||
|
||||
if not request.user.is_superuser:
|
||||
return HttpResponseRedirect(reverse('index'))
|
||||
|
||||
ifaces_all = []
|
||||
error_messages = []
|
||||
compute = Compute.objects.get(id=compute_id)
|
||||
|
||||
Reference in New Issue
Block a user