Explorar el Código

set etag and permission fields for trashbin entries

tags/v9.0beta1
Robin Appelman hace 8 años
padre
commit
cb3d3ebf50
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3
    0
      apps/files_trashbin/lib/helper.php

+ 3
- 0
apps/files_trashbin/lib/helper.php Ver fichero

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

Cargando…
Cancelar
Guardar