check if encryption app is enabled

This commit is contained in:
Bjoern Schiessle 2013-09-20 11:21:34 +02:00
parent 57092e817f
commit 96c27ead92
1 changed files with 3 additions and 4 deletions

View File

@ -51,8 +51,7 @@ class Proxy extends \OC_FileProxy {
if (is_null(self::$enableEncryption)) { if (is_null(self::$enableEncryption)) {
if ( if (\OCP\Config::getAppValue('files_encryption', 'enabled', 'true') === 'true'
\OCP\Config::getAppValue('files_encryption', 'enable_encryption', 'true') === 'true'
&& Crypt::mode() === 'server' && Crypt::mode() === 'server'
) { ) {