mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
group mailalias: the ldap class is in fact mailGroup, not mailAccount -_-
This commit is contained in:
parent
4b9e26b974
commit
1cb5e43e7e
1 changed files with 4 additions and 4 deletions
|
@ -1242,11 +1242,11 @@ def user_group_update(
|
|||
logger.info(m18n.n("group_update_aliases", group=groupname))
|
||||
new_attr_dict["mail"] = set(new_group_mail)
|
||||
|
||||
if new_attr_dict["mail"] and "mailAccount" not in group["objectClass"]:
|
||||
new_attr_dict["objectClass"] = group["objectClass"] + ["mailAccount"]
|
||||
elif not new_attr_dict["mail"] and "mailAccount" in group["objectClass"]:
|
||||
if new_attr_dict["mail"] and "mailGroup" not in group["objectClass"]:
|
||||
new_attr_dict["objectClass"] = group["objectClass"] + ["mailGroup"]
|
||||
if not new_attr_dict["mail"] and "mailGroup" in group["objectClass"]:
|
||||
new_attr_dict["objectClass"] = [
|
||||
c for c in group["objectClass"] if c != "mailAccount"
|
||||
c for c in group["objectClass"] if c != "mailGroup" and c != "mailAccount"
|
||||
]
|
||||
|
||||
if new_attr_dict:
|
||||
|
|
Loading…
Add table
Reference in a new issue