implement role support for angular authguard

This commit is contained in:
Roland Schneider
2025-11-20 12:14:41 +01:00
parent b08663fb28
commit d635ba0986
11 changed files with 223 additions and 30 deletions

View File

@@ -52,10 +52,7 @@ export class EventTypesController {
}
@Patch(':id')
update(
@Param('id', ParseIntPipe) id: number,
@Body() updateEventTypeDto: UpdateEventTypeDto,
) {
update(@Param('id', ParseIntPipe) id: number, @Body() updateEventTypeDto: UpdateEventTypeDto) {
return this.eventTypesService.update(id, updateEventTypeDto);
}

View File

@@ -52,10 +52,7 @@ export class ProductsController {
}
@Patch(':id')
update(
@Param('id', ParseIntPipe) id: number,
@Body() updateProductDto: UpdateProductDto,
) {
update(@Param('id', ParseIntPipe) id: number, @Body() updateProductDto: UpdateProductDto) {
return this.productsService.update(id, updateProductDto);
}
@@ -63,4 +60,4 @@ export class ProductsController {
remove(@Param('id', ParseIntPipe) id: number) {
return this.productsService.remove(id);
}
}
}