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

Little fix user page

This commit is contained in:
Retspen 2015-03-16 15:46:44 +02:00
parent 983dbaf91a
commit 5ba82e29aa
7 changed files with 313 additions and 286 deletions

View file

@ -5,4 +5,17 @@ from logs.models import Logs
def showlogs(request):
"""
:param request:
:return:
"""
if not request.user.is_authenticated():
return HttpResponseRedirect(reverse('index'))
if not request.user.is_superuser:
return HttpResponseRedirect(reverse('index'))
return render(request, 'showlogs.html', locals())