Do not disclose share owner in public file list

This commit is contained in:
Vincent Petry 2015-01-26 17:10:58 +01:00
parent 86689ef400
commit efcd89cb18

View file

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