From 2986019408aa1b5861d4a558015692994bff6cfc Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 24 Apr 2024 11:38:46 +0200 Subject: [PATCH] fix(files): Also skip cross storage move with access control Signed-off-by: Joas Schilling --- lib/private/Files/Storage/Local.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 22c9418d19f..cb6672e35a0 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -528,7 +528,10 @@ class Local extends \OC\Files\Storage\Common { // Don't treat ACLStorageWrapper like local storage where copy can be done directly. // Instead use the slower recursive copying in php from Common::copyFromStorage with // more permissions checks. - if ($sourceStorage->instanceOfStorage(Local::class) && !$sourceStorage->instanceOfStorage('OCA\GroupFolders\ACL\ACLStorageWrapper')) { + /** @psalm-suppress UndefinedClass */ + if ($sourceStorage->instanceOfStorage(Local::class) + && !$sourceStorage->instanceOfStorage('OCA\GroupFolders\ACL\ACLStorageWrapper') + && !$sourceStorage->instanceOfStorage(\OCA\FilesAccessControl\StorageWrapper::class)) { if ($sourceStorage->instanceOfStorage(Jail::class)) { /** * @var \OC\Files\Storage\Wrapper\Jail $sourceStorage