From ae83ee6d313d57dce867bda8efe4380e34ff1abf Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 2 Jul 2020 00:23:52 +0200 Subject: [PATCH] providers/saml: fix access result not being checked properly --- passbook/providers/saml/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/providers/saml/views.py b/passbook/providers/saml/views.py index fbb200460..a20709cbe 100644 --- a/passbook/providers/saml/views.py +++ b/passbook/providers/saml/views.py @@ -54,7 +54,7 @@ class SAMLSSOView(LoginRequiredMixin, PolicyAccessMixin, View): self.provider: SAMLProvider = get_object_or_404( SAMLProvider, pk=self.application.provider_id ) - if not self.user_has_access(self.application): + if not self.user_has_access(self.application).passing: raise PermissionDenied() # Call the method handler, which checks the SAML Request method_response = super().dispatch(request, *args, application_slug, **kwargs)