We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7d13f1 + b249abc commit 653db23Copy full SHA for 653db23
1 file changed
apps/files_trashbin/lib/Storage.php
@@ -135,7 +135,7 @@ protected function shouldMoveToTrash($path) {
135
// check if there is a app which want to disable the trash bin for this file
136
$fileId = $this->storage->getCache()->getId($path);
137
$owner = $this->storage->getOwner($path);
138
- if ($owner === false) {
+ if ($owner === false || $this->storage->instanceOfStorage(\OCA\Files_Sharing\External\Storage::class)) {
139
$nodes = $this->rootFolder->getById($fileId);
140
} else {
141
$nodes = $this->rootFolder->getUserFolder($owner)->getById($fileId);
0 commit comments