This commit is contained in:
smilerz
2021-04-17 18:28:45 -05:00
parent 82abdd0144
commit 8b61d8c504

View File

@@ -110,7 +110,8 @@ def no_space(request):
def no_perm(request):
if not request.user.is_authenticated:
return HttpResponseRedirect(reverse('index'))
messages.add_message(request, messages.ERROR, _('You are not logged in and therefore cannot view this page!'))
return HttpResponseRedirect(reverse('account_login') + '?next=' + request.GET.get('next', '/search/'))
return render(request, 'no_perm_info.html')