From 179fbada324bb51cfce6fde1818560b3ea739061 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Thu, 30 Jan 2014 15:10:42 +0100 Subject: show share owner within shared folders as well --- apps/files_sharing/lib/cache.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/files_sharing/lib/cache.php') diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php index aadc54e4a7f..27602f69abf 100644 --- a/apps/files_sharing/lib/cache.php +++ b/apps/files_sharing/lib/cache.php @@ -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; -- cgit v1.2.3