Skip to content
Snippets Groups Projects
Unverified Commit 4c10b594 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #25274 from nextcloud/fix/19647/federated_users_are_not_valid_users

Do not obtain userFolder of a federated user
parents 93943336 a0988281
No related branches found
No related tags found
No related merge requests found
...@@ -135,7 +135,7 @@ class Storage extends Wrapper { ...@@ -135,7 +135,7 @@ class Storage extends Wrapper {
// check if there is a app which want to disable the trash bin for this file // check if there is a app which want to disable the trash bin for this file
$fileId = $this->storage->getCache()->getId($path); $fileId = $this->storage->getCache()->getId($path);
$owner = $this->storage->getOwner($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); $nodes = $this->rootFolder->getById($fileId);
} else { } else {
$nodes = $this->rootFolder->getUserFolder($owner)->getById($fileId); $nodes = $this->rootFolder->getUserFolder($owner)->getById($fileId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment