mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix(files): Also skip cross storage move with access control
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
d19ad7f78c
commit
80ba4345ec
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