Merge pull request #21544 from owncloud/trashbin-permissions

set etag and permission fields for trashbin entries
This commit is contained in:
Thomas Müller 2016-01-15 13:22:54 +01:00
commit 13ce6d0f1c
1 changed files with 3 additions and 0 deletions

View File

@ -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;