diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-02 11:24:26 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-02 11:24:26 +0100 |
commit | dfb88612af23c8367e799482ec982fcf6fe96c49 (patch) | |
tree | 29a1e5eebb8c8f1ee59f6ec77d2692cda1b49873 /apps/dav/lib/carddav | |
parent | 22de25c382c3eb621a351d223c1108caeb2cfde5 (diff) | |
download | nextcloud-server-dfb88612af23c8367e799482ec982fcf6fe96c49.tar.gz nextcloud-server-dfb88612af23c8367e799482ec982fcf6fe96c49.zip |
Filter contacts from the local system addressbook - remote share with local users is not allowed
Diffstat (limited to 'apps/dav/lib/carddav')
-rw-r--r-- | apps/dav/lib/carddav/addressbookimpl.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/carddav/addressbookimpl.php b/apps/dav/lib/carddav/addressbookimpl.php index 734e68f207c..1d7b55c1a5d 100644 --- a/apps/dav/lib/carddav/addressbookimpl.php +++ b/apps/dav/lib/carddav/addressbookimpl.php @@ -214,6 +214,10 @@ class AddressBookImpl implements IAddressBook { foreach ($vCard->children as $property) { $result[$property->name] = $property->getValue(); } + if ($this->addressBookInfo['principaluri'] === 'principals/system/system' && + $this->addressBookInfo['uri'] === 'system') { + $result['isLocalSystemBook'] = true; + } return $result; } } |