mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 10:49:21 -04:00
Merge pull request #45011 from nextcloud/backport/45010/stable22
[stable22] fix(files): Also skip cross storage move with access control
This commit is contained in:
commit
6ff74ca460
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue