From c140dd6fbbd131c5fccdf4446e416011ed16ff5e Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Sun, 14 Sep 2025 10:58:21 +1200 Subject: [PATCH 1/2] Move disable --- app/controllers/shared/api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 6dcb99b56f..959ee77b7d 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -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, From 30dde4c2f4c751c6b6498569ee402954f3180ce1 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Sun, 14 Sep 2025 11:00:32 +1200 Subject: [PATCH 2/2] Trigger CI