Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/files_trashbin/lib/Trashbin.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ public static function move2trash($file_path, $ownerOnly = false) {
'timestamp' => $timestamp,
]
);
self::deleteTrashRow($user, $filename, $timestamp);
// The metadata row belongs to the owner, even when another user initiated
// the deletion.
self::deleteTrashRow($owner, $filename, $timestamp);
if ($trashStorage->file_exists($trashInternalPath)) {
if ($trashStorage->is_dir($trashInternalPath)) {
$trashStorage->rmdir($trashInternalPath);
Expand Down
Loading