fix: 修复 LDAP 导入用户时指定其他组织,还会导入到 Default 组织的问题

pull/10121/head
Bai 2023-04-03 16:54:14 +08:00
parent 3f9a17347d
commit cf972942fa
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@
from celery import shared_task
from django.conf import settings
from django.utils import timezone
from django.db import transaction
from users.notifications import PasswordExpirationReminderMsg
from ops.celery.utils import (
@ -80,6 +81,7 @@ def check_user_expired_periodic():
@shared_task
@transaction.atomic
def import_ldap_user():
logger.info("Start import ldap user task")
util_server = LDAPServerUtil()