diff options
author | Robin Appelman <robin@icewind.nl> | 2022-08-10 16:53:15 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-08-25 15:07:15 +0300 |
commit | ce47e8c0c088f14d02b0e242c637dff261bc37fb (patch) | |
tree | f249ab412fa3471a027c22256fe07094445d739c | |
parent | 33bd2d1dfba29f4d636edd42cf32091415ac8c32 (diff) |
enable encryption with system keys for groupfolders
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/Mount/GroupFolderStorage.php | 2 | ||||
-rw-r--r-- | lib/Mount/GroupMountPoint.php | 14 |
2 files changed, 3 insertions, 13 deletions
diff --git a/lib/Mount/GroupFolderStorage.php b/lib/Mount/GroupFolderStorage.php index d3215137..de9c674b 100644 --- a/lib/Mount/GroupFolderStorage.php +++ b/lib/Mount/GroupFolderStorage.php @@ -30,7 +30,7 @@ use OCP\Files\Storage\IDisableEncryptionStorage; use OCP\IUser; use OCP\IUserSession; -class GroupFolderStorage extends Quota implements IDisableEncryptionStorage { +class GroupFolderStorage extends Quota { private int $folderId; private ICacheEntry $rootEntry; private IUserSession $userSession; diff --git a/lib/Mount/GroupMountPoint.php b/lib/Mount/GroupMountPoint.php index 9aaa41e0..d1d431ef 100644 --- a/lib/Mount/GroupMountPoint.php +++ b/lib/Mount/GroupMountPoint.php @@ -22,8 +22,9 @@ namespace OCA\GroupFolders\Mount; use OC\Files\Mount\MountPoint; +use OCP\Files\Mount\ISystemMountPoint; -class GroupMountPoint extends MountPoint { +class GroupMountPoint extends MountPoint implements ISystemMountPoint { /** @var int */ private $folderId; @@ -36,17 +37,6 @@ class GroupMountPoint extends MountPoint { return 'group'; } - public function getOption($name, $default) { - $options = $this->getOptions(); - return isset($options[$name]) ? $options[$name] : $default; - } - - public function getOptions() { - $options = parent::getOptions(); - $options['encrypt'] = false; - return $options; - } - public function getFolderId(): int { return $this->folderId; } |