diff options
author | Joas Schilling <coding@schilljs.com> | 2024-04-17 16:29:07 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-04-17 14:32:55 +0000 |
commit | 1dcc48ac4fb67e502775491bdb3fa70314feac76 (patch) | |
tree | f224d9398c8f8b41375df45a2303680530766173 | |
parent | 8c87769b8d78fed534f90cad447d83d22af4047a (diff) | |
download | nextcloud-server-1dcc48ac4fb67e502775491bdb3fa70314feac76.tar.gz nextcloud-server-1dcc48ac4fb67e502775491bdb3fa70314feac76.zip |
fix(files): Also skip cross storage move with access control
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/Files/Storage/Local.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index c49cf91dc91..0ef6fcebfdb 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -589,6 +589,8 @@ class Local extends \OC\Files\Storage\Common { // Instead, use the slower recursive copying in php from Common::copyFromStorage with // more permissions checks. && !$sourceStorage->instanceOfStorage('OCA\GroupFolders\ACL\ACLStorageWrapper') + // Same for access control + && !$sourceStorage->instanceOfStorage(\OCA\FilesAccessControl\StorageWrapper::class) // when moving encrypted files we have to handle keys and the target might not be encrypted && !$sourceStorage->instanceOfStorage(Encryption::class); } |