FIX: Manage Permissions Catalog

This commit is contained in:
Victor Radael
2022-09-28 23:06:52 -03:00
parent f9b4ddd070
commit 5d924f8a92
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -71,8 +71,8 @@ export class CatalogController {
}
@Get('all')
async catalogAll(@Body() body, @Query() params) {
const { user_id, customer, customer_id } = body.info;
async catalogAll(@User() user: RequestUser, @Body() body, @Query() params) {
const { user_id, customer_name, customer_id, username } = user;
this.logger.info(`/catalog - ON CATALOG ALL ROUTE`, {
user: body.info.user_id,
customer: body.info.customer,
@@ -81,7 +81,8 @@ export class CatalogController {
const metadata = PackTheMetadata({
user_id,
customer_id,
customer_name: customer,
customer_name,
username,
});
const res = await this.catalogService.getAllOpenSearchDataAssets(
+1 -1
View File
File diff suppressed because one or more lines are too long