mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-13 14:29:08 +00:00
FIX: Manage Permissions Catalog
This commit is contained in:
@@ -55,8 +55,19 @@ export class CatalogController {
|
||||
@User() user: RequestUser,
|
||||
@Body() body,
|
||||
) {
|
||||
const response = await this.catalogService.managePermissions(body, user);
|
||||
return { message: { id, body } };
|
||||
const { customer_id, customer_name, user_id, username } = user;
|
||||
const metadata = PackTheMetadata({
|
||||
customer_id,
|
||||
customer_name,
|
||||
user_id,
|
||||
username,
|
||||
});
|
||||
const response = await this.catalogService.managePermissions(
|
||||
{ ...body, id },
|
||||
metadata,
|
||||
);
|
||||
|
||||
return { data_asset: JSON.parse(response.data_asset) };
|
||||
}
|
||||
|
||||
@Get('all')
|
||||
|
||||
Reference in New Issue
Block a user