diff --git a/seafile-ldap.py b/seafile-ldap.py index 2fa1b09..e9a9955 100644 --- a/seafile-ldap.py +++ b/seafile-ldap.py @@ -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))