Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-01-22 16:36:20 +0300
committerGitHub <noreply@github.com>2021-01-22 16:36:20 +0300
commit4c10b59404cf6507ba697ce9bf99434b799f5865 (patch)
treec0dc564123892d114dc41b9a6a130f2285bcc03a /apps
parent939433363ebcbad6212e4fe0413183a190a92eb0 (diff)
parenta0988281eed23da87ad2d39d8bce5a3935bd3dc9 (diff)
Merge pull request #25274 from nextcloud/fix/19647/federated_users_are_not_valid_users
Do not obtain userFolder of a federated user
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/lib/Storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Storage.php b/apps/files_trashbin/lib/Storage.php
index 7ae96f1b6b7..936e6d64675 100644
--- a/apps/files_trashbin/lib/Storage.php
+++ b/apps/files_trashbin/lib/Storage.php
@@ -135,7 +135,7 @@ class Storage extends Wrapper {
// check if there is a app which want to disable the trash bin for this file
$fileId = $this->storage->getCache()->getId($path);
$owner = $this->storage->getOwner($path);
- if ($owner === false) {
+ if ($owner === false || $this->storage->instanceOfStorage(\OCA\Files_Sharing\External\Storage::class)) {
$nodes = $this->rootFolder->getById($fileId);
} else {
$nodes = $this->rootFolder->getUserFolder($owner)->getById($fileId);