From d870b2d37490f46a9802ce9e81bd2b0af1e8a952 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 22 Nov 2021 13:30:29 +0100 Subject: [PATCH] Fix regression in last commit --- plugins/kolab_delegation/kolab_delegation_engine.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/kolab_delegation/kolab_delegation_engine.php b/plugins/kolab_delegation/kolab_delegation_engine.php index 9d621239..bb6a71b8 100644 --- a/plugins/kolab_delegation/kolab_delegation_engine.php +++ b/plugins/kolab_delegation/kolab_delegation_engine.php @@ -378,7 +378,7 @@ class kolab_delegation_engine // Definition of read and write ACL $right_types = $this->right_types(); - $delegate_lc = \strtolower($delegate); + $delegate_lc = strtolower($delegate); foreach ($folders as $folder) { // get only folders in personal namespace @@ -397,8 +397,8 @@ class kolab_delegation_engine // in edit mode, get folder ACL if ($delegate) { // @TODO: cache ACL - $acl = $storage->get_acl($folder); - if (!empty($acl) && (($acl = $acl[$delegate]) || ($acl = $acl[$delegate_lc]))) { + $imap_acl = $storage->get_acl($folder); + if (!empty($imap_acl) && (($acl = $imap_acl[$delegate]) || ($acl = $imap_acl[$delegate_lc]))) { if ($this->acl_compare($acl, $right_types[self::ACL_WRITE])) { $rights = self::ACL_WRITE; }