Skip to content

Commit 653db23

Browse files
authored
Merge pull request #25278 from nextcloud/backport/25274/stable20
[stable20] Do not obtain userFolder of a federated user
2 parents f7d13f1 + b249abc commit 653db23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_trashbin/lib/Storage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected function shouldMoveToTrash($path) {
135135
// check if there is a app which want to disable the trash bin for this file
136136
$fileId = $this->storage->getCache()->getId($path);
137137
$owner = $this->storage->getOwner($path);
138-
if ($owner === false) {
138+
if ($owner === false || $this->storage->instanceOfStorage(\OCA\Files_Sharing\External\Storage::class)) {
139139
$nodes = $this->rootFolder->getById($fileId);
140140
} else {
141141
$nodes = $this->rootFolder->getUserFolder($owner)->getById($fileId);

0 commit comments

Comments
 (0)