From d2bf15b20be35dd11677f3eb81ad73ead45b566c Mon Sep 17 00:00:00 2001 From: shimon Date: Tue, 26 Nov 2024 11:50:34 +0200 Subject: [PATCH] debug --- app/init.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/init.php b/app/init.php index de4a411933..d7a05951c7 100644 --- a/app/init.php +++ b/app/init.php @@ -1335,6 +1335,8 @@ App::setResource('project', function ($dbForConsole, $request, $console) { $project = Authorization::skip(fn () => $dbForConsole->getDocument('projects', $projectId)); if ($project->getAttribute('region') !== System::getEnv('_APP_REGION')) { + var_dump(System::getEnv('_APP_REGION')); + var_dump($project->getAttribute('region')); throw new Exception(Exception::GENERAL_ACCESS_FORBIDDEN, 'Project is not accessible in this region. Please make sure you are using the correct endpoint'); }