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
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-10-22 17:14:30 +0400
committerBjoern Schiessle <schiessle@owncloud.com>2014-10-22 17:14:30 +0400
commit9320225daaa2d8f5c4ddd927a8cd4c0e8e04cbf0 (patch)
treefe986635f622204575f10dd8dc25f264a7e215fa /apps/files_trashbin
parent9ea90ac82fcc77b4d0e78cd8d1d86362286091ac (diff)
make sure that trash bin is initialized for both the current user and the file owner
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/trashbin.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index 2537c9e9d4c..e0c158ad761 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -104,6 +104,9 @@ class Trashbin {
}
self::setUpTrash($user);
+ if ($owner !== $user) {
+ self::setUpTrash($owner);
+ }
$view = new \OC\Files\View('/' . $user);
$path_parts = pathinfo($file_path);