aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/carddav
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-02 11:24:26 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-02 11:24:26 +0100
commitdfb88612af23c8367e799482ec982fcf6fe96c49 (patch)
tree29a1e5eebb8c8f1ee59f6ec77d2692cda1b49873 /apps/dav/lib/carddav
parent22de25c382c3eb621a351d223c1108caeb2cfde5 (diff)
downloadnextcloud-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.php4
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;
}
}