Skip to content

Commit

Permalink
Merge pull request #750 from longguikeji/hanbinloop-patch-1
Browse files Browse the repository at this point in the history
先取消掉权限验证
  • Loading branch information
notevery authored Mar 31, 2022
2 parents fea4a8c + 7331277 commit 8dd3426
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 8dd3426

Please sign in to comment.