From 7331277dca9a62f1cfc6fda640ba0232b3955536 Mon Sep 17 00:00:00 2001 From: hanbinloop Date: Thu, 31 Mar 2022 18:18:36 +0800 Subject: [PATCH] Update views.py --- mama_cas/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mama_cas/views.py b/mama_cas/views.py index 9db2d0e35..9b1fdbb66 100644 --- a/mama_cas/views.py +++ b/mama_cas/views.py @@ -68,8 +68,8 @@ def get_login_url(self): def dispatch(self, request, *args, **kwargs): is_authenticated = self.check_token(request) if is_authenticated: - if self.check_permission(request) is False: - return HttpResponseRedirect(self.get_return_url(self.get_login_url(), '您没有使用cas应用的权限')) + # if self.check_permission(request) is False: + # return HttpResponseRedirect(self.get_return_url(self.get_login_url(), '您没有使用cas应用的权限')) return super().dispatch(request, *args, **kwargs) else: return self.handle_no_permission()