mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 07:08:05 +00:00
Little fix user page
This commit is contained in:
@@ -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())
|
||||
Reference in New Issue
Block a user