diff --git a/lelcsc/core/views.py b/lelcsc/core/views.py index d613d1e..c2d8ca7 100644 --- a/lelcsc/core/views.py +++ b/lelcsc/core/views.py @@ -14,6 +14,9 @@ def unauthorized(request): def admin_login(request): + if request.user.is_authenticated: + return redirect("unauthorized") + query = "" if next := request.GET.get("next"): q = QueryDict(mutable=True)