providers/saml: fix access result not being checked properly

This commit is contained in:
Jens Langhammer 2020-07-02 00:23:52 +02:00
parent 4701374021
commit ae83ee6d31
1 changed files with 1 additions and 1 deletions

View File

@ -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)