also work with group shares

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2016-11-17 23:30:50 +01:00
parent b85459964c
commit 5acbdf1e36
No known key found for this signature in database
GPG Key ID: 425003AC385454C5
1 changed files with 5 additions and 1 deletions

View File

@ -715,7 +715,11 @@ class DefaultShareProvider implements IShareProvider {
} }
$qb = $this->dbConn->getQueryBuilder(); $qb = $this->dbConn->getQueryBuilder();
$qb->select('s.*', 'f.fileid', 'f.path') $qb->select('s.*',
'f.fileid', 'f.path', 'f.permissions AS f_permissions', 'f.storage', 'f.path_hash',
'f.parent AS f_parent', 'f.name', 'f.mimetype', 'f.mimepart', 'f.size', 'f.mtime', 'f.storage_mtime',
'f.encrypted', 'f.unencrypted_size', 'f.etag', 'f.checksum'
)
->selectAlias('st.id', 'storage_string_id') ->selectAlias('st.id', 'storage_string_id')
->from('share', 's') ->from('share', 's')
->leftJoin('s', 'filecache', 'f', $qb->expr()->eq('s.file_source', 'f.fileid')) ->leftJoin('s', 'filecache', 'f', $qb->expr()->eq('s.file_source', 'f.fileid'))