From 24687fda2eb1313acbd7f2af47bfc857c0963c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 25 Aug 2021 12:48:54 +0200 Subject: [PATCH] Fixed configjs so disabled custom auths works in all cases --- server/src/uds/web/util/configjs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/uds/web/util/configjs.py b/server/src/uds/web/util/configjs.py index ecb8fc4f..37c4bed5 100644 --- a/server/src/uds/web/util/configjs.py +++ b/server/src/uds/web/util/configjs.py @@ -98,7 +98,7 @@ def udsJs(request: 'HttpRequest') -> str: if tag and authenticators: # Refilter authenticators, visible and with this tag if required authenticators = [x for x in authenticators if x.small_name == tag or (tag == 'disabled' and x.getType().isCustom() is False)] - if not authenticators: + if not authenticators and tag != 'disabled': try: authenticators = [Authenticator.objects.order_by('priority')[0]] except Exception: # There is no authenticators yet...