1
0
Fork 0
mirror of synced 2024-06-18 10:44:51 +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.

View file

@ -430,7 +430,7 @@ App::setResource('user', function($mode, $project, $console, $request, $response
$user = $projectDB->getDocument(Auth::$unique);
} else {
$user = $consoleDB->getDocument(Auth::$unique);
$user
->setAttribute('$id', 'admin-'.$user->getAttribute('$id'))
;