mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Small issue when deleting the user
This commit is contained in:
parent
b995b3254d
commit
732f898773
1 changed files with 2 additions and 0 deletions
|
@ -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"]:
|
||||
|
|
Loading…
Add table
Reference in a new issue