mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 07:34:27 -04:00
11 lines
253 B
Python
11 lines
253 B
Python
from django.conf import settings
|
|
from ..config import (
|
|
LDAP_CREATE_SUPERUSER
|
|
)
|
|
|
|
def create_user(sender, user=None, ldap_user=None, **kwargs):
|
|
|
|
if not user.id and LDAP_CREATE_SUPERUSER:
|
|
user.is_superuser = True
|
|
|
|
user.is_staff = True
|