diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-30 15:10:42 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-20 18:24:42 +0100 |
commit | 179fbada324bb51cfce6fde1818560b3ea739061 (patch) | |
tree | 2cf14aef0e7facb5580fee0027d4616444377e66 /apps | |
parent | 2b84f5e0b91dc41c3bffe0149bfcd19fe39d1377 (diff) | |
download | nextcloud-server-179fbada324bb51cfce6fde1818560b3ea739061.tar.gz nextcloud-server-179fbada324bb51cfce6fde1818560b3ea739061.zip |
show share owner within shared folders as well
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/cache.php | 3 |
1 files changed, 3 insertions, 0 deletions
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; |