Move disable

This commit is contained in:
Jake Barnby committed 2025-09-14 10:58:21 +12:00
1 parent b5c588722b
commit c140dd6fbb
1 file changed
+3 -2
+3 -2
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,