Projet

Général

Profil

0001-auth_oidc-remove-filter-on-show-True-in-has_provider.patch

Benjamin Dauvergne, 15 mars 2018 15:08

Télécharger (901 octets)

Voir les différences:

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(-)
src/authentic2_auth_oidc/utils.py
40 40
@GlobalCache(timeout=TIMEOUT)
41 41
def has_providers():
42 42
    from . import models
43
    return models.OIDCProvider.objects.filter(show=True).exists()
43
    return models.OIDCProvider.objects.exists()
44 44

  
45 45

  
46 46
@GlobalCache(timeout=TIMEOUT)
47
-