Small issue when deleting the user

This commit is contained in:
Alexandre Aubin 2019-09-13 19:42:15 +02:00
parent b995b3254d
commit 732f898773

View file

@ -253,6 +253,8 @@ def user_delete(operation_logger, username, purge=False):
user_group_update("all_users", remove=username, force=True, sync_perm=False)
for group, infos in user_group_list()["groups"].items():
if group == "all_users":
continue
# If the user is in this group (and it's not the primary group),
# remove the member from the group
if username != group and username in infos["members"]: