mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-17 03:09:07 +00:00
FIX: Manage Permissions Catalog
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user