Comments review
This commit is contained in:
parent
94c23cd053
commit
328d3bcfd4
|
@ -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
|
* 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
|
* 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([
|
$user = new Document([
|
||||||
'$id' => '',
|
'$id' => '',
|
||||||
'status' => Auth::USER_STATUS_ACTIVATED,
|
'status' => Auth::USER_STATUS_ACTIVATED,
|
||||||
|
|
Loading…
Reference in a new issue