sligthly improved login redirects

This commit is contained in:
vabene1111
2021-03-18 23:42:24 +01:00
parent bb0f3e1778
commit 7fbff9f3b5
2 changed files with 3 additions and 1 deletions

View File

@@ -94,6 +94,8 @@ def no_space(request):
def no_perm(request):
if not request.user.is_authenticated:
return HttpResponseRedirect(reverse('index'))
return render(request, 'no_perm_info.html')