From 73ac9f796dc1909282b5b9968a4ac2c969e292fd Mon Sep 17 00:00:00 2001 From: Shimon Newman Date: Fri, 2 Jun 2023 17:56:09 +0300 Subject: [PATCH] cache perm fix --- app/controllers/shared/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index db35cebc65..4fc0d9c345 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -465,7 +465,7 @@ App::shutdown() ]) ; $signature = md5($data); - $cacheLog = $dbForProject->getDocument('cache', $key); + $cacheLog = Authorization::skip(fn () => $dbForProject->getDocument('cache', $key)); $accessedAt = $cacheLog->getAttribute('accessedAt', ''); $now = DateTime::now(); if ($cacheLog->isEmpty()) {