show share owner within shared folders as well

This commit is contained in:
Thomas Müller 2014-01-30 15:10:42 +01:00 committed by Vincent Petry
parent 2b84f5e0b9
commit 179fbada32
1 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,7 @@ class Shared_Cache extends Cache {
return $files;
} else {
if ($cache = $this->getSourceCache($folder)) {
$parent = $this->storage->getFile($folder);
$sourceFolderContent = $cache->getFolderContents($this->files[$folder]);
foreach ($sourceFolderContent as $key => $c) {
$ownerPathParts = explode('/', \OC_Filesystem::normalizePath($c['path']));
@ -144,6 +145,8 @@ class Shared_Cache extends Cache {
$usersPath .= '/'.$part;
}
$sourceFolderContent[$key]['usersPath'] = $usersPath;
$sourceFolderContent[$key]['uid_owner'] = $parent['uid_owner'];
$sourceFolderContent[$key]['displayname_owner'] = $parent['uid_owner'];
}
return $sourceFolderContent;