aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-04-17 16:29:07 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-04-17 14:34:13 +0000
commit2a33e941318b0a63faa5287e4f70563ab74c4586 (patch)
tree247fcb735778b417ea87fcd5040cfce95171439a
parentf60173eb591d5db4bd247592a566975f64170784 (diff)
downloadnextcloud-server-2a33e941318b0a63faa5287e4f70563ab74c4586.tar.gz
nextcloud-server-2a33e941318b0a63faa5287e4f70563ab74c4586.zip
fix(files): Also skip cross storage move with access control
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/Files/Storage/Local.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index 661ae68d44e..12e7e67c097 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -593,6 +593,8 @@ class Local extends \OC\Files\Storage\Common {
// Instead, use the slower recursive copying in php from Common::copyFromStorage with
// more permissions checks.
&& !$sourceStorage->instanceOfStorage('OCA\GroupFolders\ACL\ACLStorageWrapper')
+ // Same for access control
+ && !$sourceStorage->instanceOfStorage(\OCA\FilesAccessControl\StorageWrapper::class)
// when moving encrypted files we have to handle keys and the target might not be encrypted
&& !$sourceStorage->instanceOfStorage(Encryption::class);
}