Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-12-18 00:23:50 +0300
committerMaxence Lange <maxence@artificial-owl.com>2018-12-18 00:23:50 +0300
commitb02cc4f438ad017b62b4334e8d8d104615d08602 (patch)
treef81aac159bee1750a231d98191eae9802370f072 /lib
parent647ed0849e5e5fe8af346ea609ba3d59ea750c65 (diff)
initiate a DocumentAccess - #416
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/IndexService.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Service/IndexService.php b/lib/Service/IndexService.php
index fd37629..0d8bae1 100644
--- a/lib/Service/IndexService.php
+++ b/lib/Service/IndexService.php
@@ -42,6 +42,7 @@ use OCA\FullTextSearch\Model\ProviderIndexes;
use OCA\FullTextSearch\Model\Runner;
use OCP\FullTextSearch\IFullTextSearchPlatform;
use OCP\FullTextSearch\IFullTextSearchProvider;
+use OCP\FullTextSearch\Model\DocumentAccess;
use OCP\FullTextSearch\Model\IIndex;
use OCP\FullTextSearch\Model\IIndexOptions;
use OCP\FullTextSearch\Model\IndexDocument;
@@ -309,6 +310,7 @@ class IndexService implements IIndexService {
]
);
+ $document->setAccess(new DocumentAccess());
$provider->fillIndexDocument($document);
$this->updateRunnerInfoArray(
[