Thou shalt not corrupt the answer of a cache request
This commit is contained in:
parent
8cb0d97b10
commit
fcc1b9b3cc
1 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,9 @@ use OC\Files\Cache\Cache;
|
|||
class ReadOnlyCache extends Cache {
|
||||
public function get($path) {
|
||||
$data = parent::get($path);
|
||||
$data['permissions'] &= (\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_SHARE);
|
||||
if ($data !== false) {
|
||||
$data['permissions'] &= (\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_SHARE);
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue