Update api.php

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