From 7704ab6948244f1a7a14ebe8aac88d99eebf8d24 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 15 Mar 2018 15:06:50 +0100 Subject: [PATCH] auth_oidc: remove filter on show=True in has_providers() (fixes #22541) It wrongly deactivates the auth_oidc frontend when all providers are hidden. --- src/authentic2_auth_oidc/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2_auth_oidc/utils.py b/src/authentic2_auth_oidc/utils.py index e3518070..e9ecaa89 100644 --- a/src/authentic2_auth_oidc/utils.py +++ b/src/authentic2_auth_oidc/utils.py @@ -40,7 +40,7 @@ def get_provider(pk): @GlobalCache(timeout=TIMEOUT) def has_providers(): from . import models - return models.OIDCProvider.objects.filter(show=True).exists() + return models.OIDCProvider.objects.exists() @GlobalCache(timeout=TIMEOUT) -- 2.14.2