Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbinloop authored Mar 31, 2022
1 parent fea4a8c commit 7331277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mama_cas/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7331277

Please sign in to comment.