1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

Comments review

This commit is contained in:
Eldad Fux 2020-12-29 12:45:44 +02:00
parent 94c23cd053
commit 328d3bcfd4

View file

@ -171,7 +171,7 @@ App::init(function ($utopia, $request, $response, $console, $project, $user, $lo
* Try app auth when we have project key and no user
* Mock user to app and grant API key scopes in addition to default app scopes
*/
if (null !== $key && $user->isEmpty()) {
if ($key && $user->isEmpty()) {
$user = new Document([
'$id' => '',
'status' => Auth::USER_STATUS_ACTIVATED,