Check for e2e encryption before indexing

pull/175/head
eltos 2022-11-19 18:32:36 +01:00
parent 5078d986da
commit 019cdd31f2
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class Index extends Command
// Time measurement // Time measurement
$startTime = microtime(true); $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 // 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.'); error_log('FATAL: Only server-side encryption (OC_DEFAULT_MODULE) is supported, but another encryption module is enabled. Aborted.');
return 1; return 1;