Merge pull request #10489 from appwrite/fix-check

Fix check
This commit is contained in:
Jake Barnby 2025-09-14 11:14:14 +12:00 committed by GitHub
commit ba58fcf8fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -246,10 +246,11 @@ App::init()
$role = $apiKey->getRole();
$scopes = $apiKey->getScopes();
// Disable authorization checks for API keys
Authorization::setDefaultStatus(false);
if ($apiKey->getRole() === Auth::USER_ROLE_APPS) {
// Disable authorization checks for API keys
Authorization::setDefaultStatus(false);
$user = new Document([
'$id' => '',
'status' => true,