From e06fa200b394162f2a30a481a8b1423685182863 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 17 Jun 2014 20:08:40 +0200 Subject: make sure that we always use the right user --- apps/files_trashbin/lib/helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files_trashbin/lib/helper.php') diff --git a/apps/files_trashbin/lib/helper.php b/apps/files_trashbin/lib/helper.php index ebedce31abe..d0ca5fb1530 100644 --- a/apps/files_trashbin/lib/helper.php +++ b/apps/files_trashbin/lib/helper.php @@ -11,14 +11,14 @@ class Helper * * @param string $dir path to the directory inside the trashbin * or empty to retrieve the root of the trashbin + * @param string $user * @param string $sortAttribute attribute to sort on or empty to disable sorting * @param bool $sortDescending true for descending sort, false otherwise * @return \OCP\Files\FileInfo[] */ - public static function getTrashFiles($dir, $sortAttribute = '', $sortDescending = false){ + public static function getTrashFiles($dir, $user, $sortAttribute = '', $sortDescending = false){ $result = array(); $timestamp = null; - $user = \OCP\User::getUser(); $view = new \OC\Files\View('/' . $user . '/files_trashbin/files'); -- cgit v1.2.3