Unverified Commit 7a24eb4a authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(zimbra) Do not add mail as alias if it is the same as the account id

issue #6089
Showing with 2 additions and 2 deletions
+2 -2
...@@ -677,8 +677,8 @@ class mailMethodZimbra extends mailMethod ...@@ -677,8 +677,8 @@ class mailMethodZimbra extends mailMethod
$aliases = []; $aliases = [];
} }
if (($this->type == 'user') && ($infos['id_attribute'] !== 'mail')) { if (($this->type === 'user') && ($infos['id_attribute'] !== 'mail') && ($this->parent->mail !== $this->account_id)) {
$aliases[] = $this->parent->attributesAccess['mail']->getValue(); $aliases[] = $this->parent->mail;
} }
if (!$this->setAliases($aliases)) { if (!$this->setAliases($aliases)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment