diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-03 17:57:56 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-05 08:22:01 +0200 |
commit | da3974bcb210a6580c974e1b2efebcae26ccf708 (patch) | |
tree | de4dbee3b1e0baacd6ba3600773a4178142181ed /apps/files_sharing/lib/cache.php | |
parent | ade6ed37976b405322e428df8c6697116fc9692f (diff) | |
download | nextcloud-server-da3974bcb210a6580c974e1b2efebcae26ccf708.tar.gz nextcloud-server-da3974bcb210a6580c974e1b2efebcae26ccf708.zip |
- drop permissions table and related code
- the file/folder's permission is now stored in the file cache
- BackGroundWatcher has been removed - this has meanwhile be replaced by occ files:scan which can be executed in a cron jobs
- increase version to trigger database migration
Diffstat (limited to 'apps/files_sharing/lib/cache.php')
-rw-r--r-- | apps/files_sharing/lib/cache.php | 3 |
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()); |