Browse Source

fix(files): Also skip cross storage move with access control

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v27.1.9rc1
Joas Schilling 1 month ago
parent
commit
2a33e94131
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      lib/private/Files/Storage/Local.php

+ 2
- 0
lib/private/Files/Storage/Local.php View File

@@ -593,6 +593,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);
}

Loading…
Cancel
Save