From 019cdd31f26f974a200e35fb1188a53e9704fbc2 Mon Sep 17 00:00:00 2001 From: eltos Date: Sat, 19 Nov 2022 18:32:36 +0100 Subject: [PATCH] Check for e2e encryption before indexing --- lib/Command/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Command/Index.php b/lib/Command/Index.php index d1ba0d55..7e5ae81a 100644 --- a/lib/Command/Index.php +++ b/lib/Command/Index.php @@ -178,7 +178,7 @@ class Index extends Command // Time measurement $startTime = microtime(true); - if ($this->encryptionManager->isEnabled() && $this->encryptionManager->getDefaultEncryptionModuleId() != 'OC_DEFAULT_MODULE') { + if (\OCA\Memories\Util::isEncryptionEnabled($this->encryptionManager)) { // Can work with server-side but not with e2e encryption, see https://github.com/pulsejet/memories/issues/99 error_log('FATAL: Only server-side encryption (OC_DEFAULT_MODULE) is supported, but another encryption module is enabled. Aborted.'); return 1;