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

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-04-17 16:29:07 +02:00
parent f865f44767
commit 050408c9de
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}