mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
debug
This commit is contained in:
parent
b1e5a5b987
commit
d2bf15b20b
1 changed files with 2 additions and 0 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue