From f2a8b7d029211a113ab87be79e4e368e75ea8c48 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 14 Mar 2017 17:50:33 +0100 Subject: [PATCH] Fix mail acl can not deal with digital account id to make the owner rules readonly --- mail/inc/class.mail_acl.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mail/inc/class.mail_acl.inc.php b/mail/inc/class.mail_acl.inc.php index b62070d440..24afb2fbc7 100644 --- a/mail/inc/class.mail_acl.inc.php +++ b/mail/inc/class.mail_acl.inc.php @@ -203,7 +203,8 @@ class mail_acl //Make the account owner's fields all readonly as owner has all rights and should not be able to change them foreach($content['grid'] as $key => $fields) { - if (self::_extract_acc_id($fields['acc_id']) == $this->imap->acc_imap_username) + if (self::_extract_acc_id($fields['acc_id']) == $this->imap->acc_imap_username || + $this->imap->getMailBoxUserName(self::_extract_acc_id($fields['acc_id'])) == $this->imap->acc_imap_username) { foreach (array_keys($fields) as $index) {