diff --git a/horilla/decorators.py b/horilla/decorators.py index c3b9970a2..d5c172fb0 100755 --- a/horilla/decorators.py +++ b/horilla/decorators.py @@ -223,7 +223,7 @@ def login_required(view_func): request.session["title"] = res if path == "" or path == "/": request.session["title"] = "Dashboard".upper() - if not request.user.is_authenticated: + if not request.user.is_authenticated or not request.user.is_active: login_url = reverse("login") params = urlencode(request.GET) url = f"{login_url}?next={request.path}"