Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24d82146 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

rnd: modify cacheWrapperException

parent 27c491af
Loading
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -24,15 +24,14 @@ class CacheWrapper extends Wrapper {
	}

	protected function formatCacheEntry($entry) {
		throw new \OC\ServiceUnavailableException('Service unavailable');
		// if (isset($entry['path']) && isset($entry['permissions'])) {
		// 	try {
		// 		throw new \Exception('Access denied', 503);
		// 	} catch (\Exception) {
		// 		$entry['permissions'] &= $this->mask;
		// 	}
		// }
		// return $entry;
		if (isset($entry['path']) && isset($entry['permissions'])) {
			try {
				throw new \Exception('Access denied', 503);
			} catch (\Exception) {
				$entry['permissions'] &= $this->mask;
			}
		}
		return $entry;
	}

	public function insert($file, $data) {