aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/cache.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-06-05 10:05:05 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-05 10:05:05 +0200
commitff3ded6cb2f8542c3b2a083f4dabc83ccfa1888e (patch)
treebc041a07259ea4ba303503ac2ede3a4435f672b5 /apps/files_sharing/lib/cache.php
parentcb61d8a2265b3d623b676f0cd35f93921961f044 (diff)
parentda3974bcb210a6580c974e1b2efebcae26ccf708 (diff)
downloadnextcloud-server-ff3ded6cb2f8542c3b2a083f4dabc83ccfa1888e.tar.gz
nextcloud-server-ff3ded6cb2f8542c3b2a083f4dabc83ccfa1888e.zip
Merge pull request #8852 from owncloud/kill-permissions-master
Kill permissions table
Diffstat (limited to 'apps/files_sharing/lib/cache.php')
-rw-r--r--apps/files_sharing/lib/cache.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index 9d83ed13b87..f6c42e930d1 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -105,7 +105,7 @@ class Shared_Cache extends Cache {
}
$query = \OC_DB::prepare(
'SELECT `fileid`, `storage`, `path`, `parent`, `name`, `mimetype`, `mimepart`,'
- . ' `size`, `mtime`, `encrypted`, `unencrypted_size`, `storage_mtime`, `etag`'
+ . ' `size`, `mtime`, `encrypted`, `unencrypted_size`, `storage_mtime`, `etag`, `permissions`'
. ' FROM `*PREFIX*filecache` WHERE `fileid` = ?');
$result = $query->execute(array($sourceId));
$data = $result->fetchRow();
@@ -124,6 +124,7 @@ class Shared_Cache extends Cache {
} else {
$data['size'] = (int)$data['size'];
}
+ $data['permissions'] = (int)$data['permissions'];
if (!is_int($file) || $file === 0) {
$data['path'] = '';
$data['name'] = basename($this->storage->getMountPoint());