1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

fix some style issues

This commit is contained in:
Torsten Dittmann 2021-06-30 16:47:55 +02:00
parent 1e6b867378
commit d224fb49e6
2 changed files with 2 additions and 2 deletions

View file

@ -234,7 +234,7 @@ App::init(function ($utopia, $request, $response, $console, $project, $consoleDB
]);
$role = Auth::USER_ROLE_APP;
$scopes = \array_merge($roles[Auth::USER_ROLE_APP]['scopes'], $key->getAttribute('scopes', []));
$scopes = \array_merge($roles[$role]['scopes'], $key->getAttribute('scopes', []));
Authorization::setRole('role:'.Auth::USER_ROLE_APP);
Authorization::setDefaultStatus(false); // Cancel security segmentation for API keys.