From 59760bf5290551aeb24222aa8829dce286348f05 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 5 Sep 2024 08:28:47 +0545 Subject: [PATCH] Update api.php --- app/controllers/shared/api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 0b10452b1e..cf7980b694 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -292,6 +292,7 @@ App::init() throw new Exception(Exception::USER_UNAUTHORIZED); } + $scopes = []; // reset scope if admin foreach ($adminRoles as $role) { $scopes = \array_merge($scopes, $roles[$role]['scopes']); }