From 2c1f6331a4d6a5d4663d57858f10faa851e33d82 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 27 Nov 2018 16:54:00 +0100 Subject: Add interface to allow storages from opting out of encryption As opposed to hard-coding a list of excluded storages Signed-off-by: Robin Appelman --- apps/files_external/lib/Lib/Storage/OwnCloud.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/files_external') diff --git a/apps/files_external/lib/Lib/Storage/OwnCloud.php b/apps/files_external/lib/Lib/Storage/OwnCloud.php index 3ee2b70ef22..04cd5ecf9af 100644 --- a/apps/files_external/lib/Lib/Storage/OwnCloud.php +++ b/apps/files_external/lib/Lib/Storage/OwnCloud.php @@ -25,6 +25,7 @@ */ namespace OCA\Files_External\Lib\Storage; +use OCP\Files\Storage\IDisableEncryptionStorage; use Sabre\DAV\Client; /** @@ -34,7 +35,7 @@ use Sabre\DAV\Client; * http://%host/%context/remote.php/webdav/%root * */ -class OwnCloud extends \OC\Files\Storage\DAV{ +class OwnCloud extends \OC\Files\Storage\DAV implements IDisableEncryptionStorage { const OC_URL_SUFFIX = 'remote.php/webdav'; public function __construct($params) { -- cgit v1.2.3