diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-17 20:08:40 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-18 14:41:16 +0200 |
commit | e06fa200b394162f2a30a481a8b1423685182863 (patch) | |
tree | 787db396b2837193f0dc2032ce85397b42cfa678 /apps/files_trashbin/lib/helper.php | |
parent | b486f48fbca0d8659d720bd37d6422d01bc09420 (diff) | |
download | nextcloud-server-e06fa200b394162f2a30a481a8b1423685182863.tar.gz nextcloud-server-e06fa200b394162f2a30a481a8b1423685182863.zip |
make sure that we always use the right user
Diffstat (limited to 'apps/files_trashbin/lib/helper.php')
-rw-r--r-- | apps/files_trashbin/lib/helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'); |