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