From 630954c94edba7cc6583ce620a27c8eb7d35dc67 Mon Sep 17 00:00:00 2001 From: shimon Date: Sat, 13 Aug 2022 17:55:27 +0300 Subject: [PATCH] some fixes --- app/controllers/api/account.php | 1 - app/controllers/api/users.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 412af21e99..0290d46527 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1321,7 +1321,6 @@ App::get('/v1/account/logs') ->action(function (int $limit, int $offset, Response $response, Document $user, Locale $locale, Reader $geodb, Database $dbForProject, Stats $usage) { $audit = new EventAudit($dbForProject); - var_dump($user); $logs = $audit->getLogsByUser($user->getId(), $limit, $offset); $output = []; diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index 4750c35901..ecf21a22bd 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -33,6 +33,7 @@ App::post('/v1/users') ->groups(['api', 'users']) ->label('event', 'users.[userId].create') ->label('scope', 'users.write') + ->label('audits.resource', 'user/{response.$id}') ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) ->label('sdk.namespace', 'users') ->label('sdk.method', 'create')