summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/api/sharees.php
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/files_sharing/api/sharees.php
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/files_sharing/api/sharees.php')
-rw-r--r--apps/files_sharing/api/sharees.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/api/sharees.php b/apps/files_sharing/api/sharees.php
index c6bef8d784d..85cea2e4238 100644
--- a/apps/files_sharing/api/sharees.php
+++ b/apps/files_sharing/api/sharees.php
@@ -270,6 +270,9 @@ class Sharees {
$addressBookContacts = $this->contactsManager->search($search, ['CLOUD', 'FN']);
$foundRemoteById = false;
foreach ($addressBookContacts as $contact) {
+ if (isset($contact['isLocalSystemBook'])) {
+ continue;
+ }
if (isset($contact['CLOUD'])) {
$cloudIds = $contact['CLOUD'];
if (!is_array($cloudIds)) {