diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-15 13:22:54 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-15 13:22:54 +0100 |
commit | 13ce6d0f1cb8eb6eb480685588040cc010a515c6 (patch) | |
tree | 270f5330f529f1a9c449617c764e6c5c89da46b7 /apps/files_trashbin | |
parent | 416fb656050f19f97f8218a5aca8095e80da4acd (diff) | |
parent | cb3d3ebf50efd044f50798a22bb3cc4efb9c9e26 (diff) | |
download | nextcloud-server-13ce6d0f1cb8eb6eb480685588040cc010a515c6.tar.gz nextcloud-server-13ce6d0f1cb8eb6eb480685588040cc010a515c6.zip |
Merge pull request #21544 from owncloud/trashbin-permissions
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 4d8b8b448ef..f56bbb12a91 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; |