mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix: keep check for console users
This commit is contained in:
1 parent
40de68a585
commit
0ee8c799fa
1 file changed
+2
-2
@@ -557,8 +557,8 @@ App::init()
|
||||
if ($useCache) {
|
||||
$route = $utopia->match($request);
|
||||
$isImageTransformation = $route->getPath() === '/v1/storage/buckets/:bucketId/files/:fileId/preview';
|
||||
// Plan-level disable (legacy) - -1 means disabled
|
||||
$isDisabled = isset($plan['imageTransformations']) && $plan['imageTransformations'] === -1;
|
||||
$isDisabled = isset($plan['imageTransformations']) && $plan['imageTransformations'] === -1 && !Auth::isPrivilegedUser(Authorization::getRoles());
|
||||
|
||||
|
||||
$key = $request->cacheIdentifier();
|
||||
$cacheLog = Authorization::skip(fn () => $dbForProject->getDocument('cache', $key));
|
||||
|
||||
Reference in new issue
Block a user