Do not disclose share owner in public file list
This commit is contained in:
parent
86689ef400
commit
efcd89cb18
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ $files = \OCA\Files\Helper::getFiles($dir, $sortAttribute, $sortDirection);
|
|||
$formattedFiles = array();
|
||||
foreach ($files as $file) {
|
||||
$entry = \OCA\Files\Helper::formatFileInfo($file);
|
||||
unset($entry['directory']); // for now
|
||||
// for now
|
||||
unset($entry['directory']);
|
||||
// do not disclose share owner
|
||||
unset($entry['shareOwner']);
|
||||
$entry['permissions'] = \OCP\Constants::PERMISSION_READ;
|
||||
$formattedFiles[] = $entry;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue