This commit is contained in:
2021-11-03 13:54:40 -04:00
parent a1755f3598
commit c0f31e2230

View File

@@ -221,7 +221,7 @@ for ldapUser in ldapUsers:
# Loop through the sql ldap users and disable those not in the ldap list
for seafileLDAPUser in seafileLDAPUsers:
if -not seafileLDAPUser['is_active']:
if not seafileLDAPUser['is_active']:
logger.debug("User {0} is already disabled in Seafile".format(seafileLDAPUser['email']))
continue
logger.debug("Searching for user {0} that has an email address, are enabled, and in the {1} group.".format(seafileLDAPUser['email'], ldapFilter))