Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-01-08 15:07:23 +0300
committerMorris Jobke <hey@morrisjobke.de>2016-02-22 17:37:06 +0300
commit18e927e5f25255d7488dbe30867246ad67e2fad3 (patch)
treede268c6800812d5652f1c3081d84949e78bf10dc /apps
parenta4668fdaf6ad8b32e7b75f9c9d6a479d17350efe (diff)
set etag and permission fields for trashbin entries
Diffstat (limited to 'apps')
-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 42412d5d4c9..2dfac3d5709 100644
--- a/apps/files_trashbin/lib/helper.php
+++ b/apps/files_trashbin/lib/helper.php
@@ -26,6 +26,7 @@
namespace OCA\Files_Trashbin;
use OC\Files\FileInfo;
+use OCP\Constants;
class Helper
{
@@ -86,6 +87,8 @@ class Helper
'mimetype' => \OC_Helper::getFileNameMimeType($id),
'type' => $view->is_dir($dir . '/' . $entryName) ? 'dir' : 'file',
'directory' => ($dir === '/') ? '' : $dir,
+ 'etag' => '',
+ 'permissions' => Constants::PERMISSION_ALL - Constants::PERMISSION_SHARE
);
if ($originalPath) {
$i['extraData'] = $originalPath.'/'.$id;