Loading lib/Filesystem/CacheWrapper.php +5 −6 Original line number Diff line number Diff line Loading @@ -8,7 +8,6 @@ use OC\Files\Cache\Wrapper\CacheWrapper as Wrapper; use OCP\Constants; use OCP\Files\Cache\ICache; use OCP\Files\Cache\ICacheEntry; use OCP\Files\ForbiddenException; use OCP\Files\Search\ISearchQuery; class CacheWrapper extends Wrapper { Loading @@ -27,8 +26,8 @@ class CacheWrapper extends Wrapper { protected function formatCacheEntry($entry) { if (isset($entry['path']) && isset($entry['permissions'])) { try { throw new ForbiddenException('Access denied', false); } catch (ForbiddenException) { throw new \Exception('Access denied', 503); } catch (\Exception) { $entry['permissions'] &= $this->mask; } } Loading @@ -36,15 +35,15 @@ class CacheWrapper extends Wrapper { } public function insert($file, $data) { throw new \Exception('User data cache insert is disabled.'); throw new \Exception('User data cache insert is disabled.', 503); } public function update($id, $data) { throw new \Exception('User data cache update is disabled.'); throw new \Exception('User data cache update is disabled.', 503); } public function remove($fileId) { throw new \Exception('User data cache removal is disabled.'); throw new \Exception('User data cache removal is disabled.', 503); } public function searchQuery(ISearchQuery $searchQuery) { Loading Loading
lib/Filesystem/CacheWrapper.php +5 −6 Original line number Diff line number Diff line Loading @@ -8,7 +8,6 @@ use OC\Files\Cache\Wrapper\CacheWrapper as Wrapper; use OCP\Constants; use OCP\Files\Cache\ICache; use OCP\Files\Cache\ICacheEntry; use OCP\Files\ForbiddenException; use OCP\Files\Search\ISearchQuery; class CacheWrapper extends Wrapper { Loading @@ -27,8 +26,8 @@ class CacheWrapper extends Wrapper { protected function formatCacheEntry($entry) { if (isset($entry['path']) && isset($entry['permissions'])) { try { throw new ForbiddenException('Access denied', false); } catch (ForbiddenException) { throw new \Exception('Access denied', 503); } catch (\Exception) { $entry['permissions'] &= $this->mask; } } Loading @@ -36,15 +35,15 @@ class CacheWrapper extends Wrapper { } public function insert($file, $data) { throw new \Exception('User data cache insert is disabled.'); throw new \Exception('User data cache insert is disabled.', 503); } public function update($id, $data) { throw new \Exception('User data cache update is disabled.'); throw new \Exception('User data cache update is disabled.', 503); } public function remove($fileId) { throw new \Exception('User data cache removal is disabled.'); throw new \Exception('User data cache removal is disabled.', 503); } public function searchQuery(ISearchQuery $searchQuery) { Loading