Skip to content

Commit

Permalink
Merge pull request #45012 from nextcloud/backport/45010/stable21
Browse files Browse the repository at this point in the history
[stable21] fix(files): Also skip cross storage move with access control
  • Loading branch information
nickvergessen committed Apr 24, 2024
2 parents 646cba4 + 2986019 commit 11a19ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/private/Files/Storage/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,10 @@ public function copyFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t
// 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
Expand Down

0 comments on commit 11a19ad

Please sign in to comment.