Skip to content

Commit a11eae4

Browse files
Merge pull request #45010 from nextcloud/backport/44892/stable23
[stable23] fix(files): Also skip cross storage move with access control
2 parents d19ad7f + 80ba434 commit a11eae4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/private/Files/Storage/Local.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,10 @@ public function copyFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t
528528
// Don't treat ACLStorageWrapper like local storage where copy can be done directly.
529529
// Instead use the slower recursive copying in php from Common::copyFromStorage with
530530
// more permissions checks.
531-
if ($sourceStorage->instanceOfStorage(Local::class) && !$sourceStorage->instanceOfStorage('OCA\GroupFolders\ACL\ACLStorageWrapper')) {
531+
/** @psalm-suppress UndefinedClass */
532+
if ($sourceStorage->instanceOfStorage(Local::class)
533+
&& !$sourceStorage->instanceOfStorage('OCA\GroupFolders\ACL\ACLStorageWrapper')
534+
&& !$sourceStorage->instanceOfStorage(\OCA\FilesAccessControl\StorageWrapper::class)) {
532535
if ($sourceStorage->instanceOfStorage(Jail::class)) {
533536
/**
534537
* @var \OC\Files\Storage\Wrapper\Jail $sourceStorage

0 commit comments

Comments
 (0)