summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-01-15 13:22:54 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-15 13:22:54 +0100
commit13ce6d0f1cb8eb6eb480685588040cc010a515c6 (patch)
tree270f5330f529f1a9c449617c764e6c5c89da46b7 /apps/files_trashbin
parent416fb656050f19f97f8218a5aca8095e80da4acd (diff)
parentcb3d3ebf50efd044f50798a22bb3cc4efb9c9e26 (diff)
downloadnextcloud-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.php3
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;