diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-01-08 13:07:23 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-08 13:07:23 +0100 |
commit | cb3d3ebf50efd044f50798a22bb3cc4efb9c9e26 (patch) | |
tree | d4503c1146fd7893227eeaa650126d506acb1f3f /apps/files_trashbin | |
parent | 074a7fd47593ea375c6417366552856c053ea895 (diff) | |
download | nextcloud-server-cb3d3ebf50efd044f50798a22bb3cc4efb9c9e26.tar.gz nextcloud-server-cb3d3ebf50efd044f50798a22bb3cc4efb9c9e26.zip |
set etag and permission fields for trashbin entries
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/lib/helper.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/helper.php b/apps/files_trashbin/lib/helper.php index 0ccf15cd2bc..ec5b49b3c7c 100644 --- a/apps/files_trashbin/lib/helper.php +++ b/apps/files_trashbin/lib/helper.php @@ -27,6 +27,7 @@ namespace OCA\Files_Trashbin; use OC\Files\FileInfo; +use OCP\Constants; class Helper { @@ -91,6 +92,8 @@ class Helper 'type' => $view->is_dir($dir . '/' . $entryName) ? 'dir' : 'file', 'directory' => ($dir === '/') ? '' : $dir, 'size' => $size, + 'etag' => '', + 'permissions' => Constants::PERMISSION_ALL - Constants::PERMISSION_SHARE ); if ($originalPath) { $i['extraData'] = $originalPath.'/'.$id; |