Update api.php

This commit is contained in:
Damodar Lohani authored and GitHub committed 2024-09-05 08:28:47 +05:45
1 parent 42b85fad54
commit 59760bf529
1 file changed
+1
+1
View File
@@ -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']);
}