diff options
author | Robin Appelman <robin@icewind.nl> | 2018-11-27 18:58:58 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-11-27 19:26:01 +0300 |
commit | 4521451cbb68b8b0760cd7603f6a3fc2482353f7 (patch) | |
tree | 1d3e3ddb8df099059d84550e6acc9642087da6d7 | |
parent | 07f145645ae86a7cb02527c90b5c02febd58ec77 (diff) |
disable encryption wrapper for group folders
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | appinfo/info.xml | 2 | ||||
-rw-r--r-- | lib/Mount/GroupFolderStorage.php | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml index 87f84206..1d29eb52 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -29,7 +29,7 @@ Note: encrypting the contents of group folders is currently not supported.]]></d <screenshot>https://raw.githubusercontent.com/nextcloud/groupfolders/master/screenshots/permissions.png</screenshot> <dependencies> - <nextcloud min-version="13" max-version="16"/> + <nextcloud min-version="14" max-version="16"/> </dependencies> <commands> diff --git a/lib/Mount/GroupFolderStorage.php b/lib/Mount/GroupFolderStorage.php index ce278dde..87df39a5 100644 --- a/lib/Mount/GroupFolderStorage.php +++ b/lib/Mount/GroupFolderStorage.php @@ -36,4 +36,12 @@ class GroupFolderStorage extends Quota { public function getFolderId() { return $this->folderId; } + + public function instanceOfStorage($class) { + // "implement" the interface without adding a hard dependency on nc15 + if ($class === 'OCP\Files\Storage\IDisableEncryptionStorage') { + return true; + } + return parent::instanceOfStorage($class); + } } |