diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-30 11:18:46 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-20 18:24:42 +0100 |
commit | 7c68025010f3aeb91b84663fb3239ae0d038b4e2 (patch) | |
tree | ffd657f1fec3e0420043461fc6e0b93e5c545bb8 /apps/files_sharing | |
parent | 5cc4a47f4c714f2654b5845cf5acc4d56d63fc00 (diff) | |
download | nextcloud-server-7c68025010f3aeb91b84663fb3239ae0d038b4e2.tar.gz nextcloud-server-7c68025010f3aeb91b84663fb3239ae0d038b4e2.zip |
adding share owner information to the file list
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/share/file.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/share/file.php b/apps/files_sharing/lib/share/file.php index ec0f368386f..5e00050fe1e 100644 --- a/apps/files_sharing/lib/share/file.php +++ b/apps/files_sharing/lib/share/file.php @@ -94,6 +94,9 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent { $file['mtime'] = $item['mtime']; $file['encrypted'] = $item['encrypted']; $file['etag'] = $item['etag']; + $file['uid_owner'] = $item['uid_owner']; + $file['displayname_owner'] = $item['displayname_owner']; + $storage = \OC\Files\Filesystem::getStorage('/'); $cache = $storage->getCache(); if ($item['encrypted'] or ($item['unencrypted_size'] > 0 and $cache->getMimetype($item['mimetype']) === 'httpd/unix-directory')) { |