Skip to content

Commit

Permalink
fix: 未登录重定向报错修复 TencentBlueKing#7625
Browse files Browse the repository at this point in the history
  • Loading branch information
huangpixu committed Dec 10, 2024
1 parent d8f1fb0 commit a087028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcloud/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def page_not_found(request, exception):
return render(request, "core/base_vue.html", {})

# 未登录重定向到首页,跳到登录页面
if hasattr(LoginRequiredMiddleware(), "is_user_forbidden"):
if hasattr(LoginRequiredMiddleware(get_response), "is_user_forbidden"):
user_forbidden, msg = LoginRequiredMiddleware(get_response).is_user_forbidden(request)
if user_forbidden:
handler = ResponseHandler(ConfFixture, settings)
Expand Down

0 comments on commit a087028

Please sign in to comment.