diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-02-21 21:36:14 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-02-26 19:44:49 +0100 |
commit | e930a0ccbef07f5ce9847c39584d4125aecffe38 (patch) | |
tree | 1c99d96afe026d3c8fc81057bc7a434cb6fb1bef /apps/files_sharing/lib/Controller | |
parent | a3d936fbb7c8356a39308d836282b4ee6b2abdc1 (diff) | |
download | nextcloud-server-e930a0ccbef07f5ce9847c39584d4125aecffe38.tar.gz nextcloud-server-e930a0ccbef07f5ce9847c39584d4125aecffe38.zip |
Search sharees on lookup server when explicitly requested by user
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_sharing/lib/Controller')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareesAPIController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php index a52ee88855a..e1546e115ec 100644 --- a/apps/files_sharing/lib/Controller/ShareesAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php @@ -92,6 +92,7 @@ class ShareesAPIController extends OCSController { 'lookup' => [], 'circles' => [], 'rooms' => [], + 'lookupEnabled' => false, ]; protected $reachedEndFor = []; @@ -212,6 +213,7 @@ class ShareesAPIController extends OCSController { $result['exact'] = array_merge($this->result['exact'], $result['exact']); } $this->result = array_merge($this->result, $result); + $this->result['lookupEnabled'] = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'yes') === 'yes'; $response = new DataResponse($this->result); if ($hasMoreResults) { |