From f64bac231bc5141599a5007bb9d3a768f1d622b4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 4 Dec 2014 15:01:35 +0000 Subject: [PATCH] * CardDAV/Addressbook: fixed OS X addressbook overwrites account with lowest id when creating a new contact --- phpgwapi/inc/class.groupdav_handler.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.groupdav_handler.inc.php b/phpgwapi/inc/class.groupdav_handler.inc.php index bbbadea8f6..552e6f3a06 100644 --- a/phpgwapi/inc/class.groupdav_handler.inc.php +++ b/phpgwapi/inc/class.groupdav_handler.inc.php @@ -281,7 +281,7 @@ abstract class groupdav_handler return '403 Forbidden'; // no app rights } $extra_acl = $this->method2acl[$method]; - if (!($entry = $this->read($id, $options['path'])) && ($method != 'PUT' || $entry === false) || + if ($id && !($entry = $this->read($id, $options['path'])) && ($method != 'PUT' || $entry === false) || ($extra_acl != EGW_ACL_READ && $this->check_access($extra_acl,$entry) === false)) { if ($return_no_access && !is_null($entry))