finish migrating almost all config to new system

This commit is contained in:
Nick Sweeting
2024-09-30 23:21:34 -07:00
parent 4b6a2a3e50
commit d21bc86075
25 changed files with 246 additions and 349 deletions

View File

@@ -1,9 +1,7 @@
from ..config.legacy import (
LDAP_CREATE_SUPERUSER
)
from archivebox.plugins_auth.ldap.apps import LDAP_CONFIG
def create_user(sender, user=None, ldap_user=None, **kwargs):
if not user.id and LDAP_CREATE_SUPERUSER:
if not user.id and LDAP_CONFIG.LDAP_CREATE_SUPERUSER:
user.is_superuser = True
user.is_staff = True