diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index d732d0564a..a8c109ce80 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1252,11 +1252,10 @@ App::get('/v1/account') ->inject('user') ->inject('usage') ->action(function (Response $response, Document $user, Stats $usage) { -var_dump("********** 1 "); + $usage->setParam('users.read', 1); - var_dump("********** 2 "); + $response->dynamic($user, Response::MODEL_USER); - var_dump("********** 3 "); }); App::get('/v1/account/prefs') diff --git a/app/controllers/general.php b/app/controllers/general.php index 19e74914bc..620f16f1c1 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -311,8 +311,6 @@ App::init(function (App $utopia, Request $request, Response $response, Document } } -var_dump($scope, $scopes); - if (!\in_array($scope, $scopes)) { if ($project->isEmpty()) { // Check if permission is denied because project is missing throw new AppwriteException('Project not found', 404, AppwriteException::PROJECT_NOT_FOUND); diff --git a/tests/e2e/Services/Account/AccountBase.php b/tests/e2e/Services/Account/AccountBase.php index 3e8c5d29c4..7ad59a11e4 100644 --- a/tests/e2e/Services/Account/AccountBase.php +++ b/tests/e2e/Services/Account/AccountBase.php @@ -1356,9 +1356,6 @@ trait AccountBase $sessionId = $response['body']['$id']; $session = $this->client->parseCookie((string)$response['headers']['set-cookie'])['a_session_' . $this->getProject()['$id']]; - var_dump($sessionId); - var_dump($session); - $response = $this->client->call(Client::METHOD_GET, '/account', array_merge([ 'origin' => 'http://localhost', 'content-type' => 'application/json',