فهرست منبع

disable LDAP_BINARY if LDAP_ENABLED=False

Nick Sweeting 1 سال پیش
والد
کامیت
228bb7bd52
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      archivebox/plugins_auth/ldap/apps.py

+ 1 - 1
archivebox/plugins_auth/ldap/apps.py

@@ -75,7 +75,7 @@ class LdapAuthPlugin(BasePlugin):
 
     hooks: List[InstanceOf[BaseHook]] = [
         LDAP_CONFIG,
-        LDAP_BINARY,
+        *([LDAP_BINARY] if LDAP_CONFIG.LDAP_ENABLED else []),
     ]