Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix

kruzhambus58fdbd0fd761
diff --git a/src/marketplace/categories/categories.controller.ts b/src/marketplace/categories/categories.controller.ts
index aa902cf26..4f1cbe609 100644
--- a/src/marketplace/categories/categories.controller.ts
+++ b/src/marketplace/categories/categories.controller.ts
@@ -91,7 +91,7 @@ export class CategoriesController {
}
@UseGuards(RolesGuard)
- @Roles(UserType.ADMIN || UserType.CUSTOMER)
+ @Roles(UserType.ADMIN)
@Post()
async createCategory(
@Body() body: CreateCategory,
@@ -145,8 +145,8 @@ export class CategoriesController {
example: 1,
type: Number,
})
- // @UseGuards(RolesGuard)
- // @Roles(UserType.ADMIN)
+ @UseGuards(RolesGuard)
+ @Roles(UserType.ADMIN)
@Delete(':categoryId')
async deleteCategory(@Param() params: DeleteCategoryParams): Promise<void> {
const category = await this.categoriesService.findById(params.categoryId)