kolab_delegation: Use case-insensitive ACL identifier comparison
This commit is contained in:
parent
b1d3006fa2
commit
db8414356c
1 changed files with 3 additions and 1 deletions
|
@ -378,6 +378,8 @@ class kolab_delegation_engine
|
||||||
// Definition of read and write ACL
|
// Definition of read and write ACL
|
||||||
$right_types = $this->right_types();
|
$right_types = $this->right_types();
|
||||||
|
|
||||||
|
$delegate_lc = \strtolower($delegate);
|
||||||
|
|
||||||
foreach ($folders as $folder) {
|
foreach ($folders as $folder) {
|
||||||
// get only folders in personal namespace
|
// get only folders in personal namespace
|
||||||
if ($storage->folder_namespace($folder) != 'personal') {
|
if ($storage->folder_namespace($folder) != 'personal') {
|
||||||
|
@ -396,7 +398,7 @@ class kolab_delegation_engine
|
||||||
if ($delegate) {
|
if ($delegate) {
|
||||||
// @TODO: cache ACL
|
// @TODO: cache ACL
|
||||||
$acl = $storage->get_acl($folder);
|
$acl = $storage->get_acl($folder);
|
||||||
if ($acl = $acl[$delegate]) {
|
if (!empty($acl) && (($acl = $acl[$delegate]) || ($acl = $acl[$delegate_lc]))) {
|
||||||
if ($this->acl_compare($acl, $right_types[self::ACL_WRITE])) {
|
if ($this->acl_compare($acl, $right_types[self::ACL_WRITE])) {
|
||||||
$rights = self::ACL_WRITE;
|
$rights = self::ACL_WRITE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue