show share owner within shared folders as well
This commit is contained in:
parent
2b84f5e0b9
commit
179fbada32
|
@ -135,6 +135,7 @@ class Shared_Cache extends Cache {
|
||||||
return $files;
|
return $files;
|
||||||
} else {
|
} else {
|
||||||
if ($cache = $this->getSourceCache($folder)) {
|
if ($cache = $this->getSourceCache($folder)) {
|
||||||
|
$parent = $this->storage->getFile($folder);
|
||||||
$sourceFolderContent = $cache->getFolderContents($this->files[$folder]);
|
$sourceFolderContent = $cache->getFolderContents($this->files[$folder]);
|
||||||
foreach ($sourceFolderContent as $key => $c) {
|
foreach ($sourceFolderContent as $key => $c) {
|
||||||
$ownerPathParts = explode('/', \OC_Filesystem::normalizePath($c['path']));
|
$ownerPathParts = explode('/', \OC_Filesystem::normalizePath($c['path']));
|
||||||
|
@ -144,6 +145,8 @@ class Shared_Cache extends Cache {
|
||||||
$usersPath .= '/'.$part;
|
$usersPath .= '/'.$part;
|
||||||
}
|
}
|
||||||
$sourceFolderContent[$key]['usersPath'] = $usersPath;
|
$sourceFolderContent[$key]['usersPath'] = $usersPath;
|
||||||
|
$sourceFolderContent[$key]['uid_owner'] = $parent['uid_owner'];
|
||||||
|
$sourceFolderContent[$key]['displayname_owner'] = $parent['uid_owner'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $sourceFolderContent;
|
return $sourceFolderContent;
|
||||||
|
|
Loading…
Reference in New Issue