fix(security): add RolesGuard to doctors mutations and JwtAuthGuard to prescriptions upload
Deploy Canina / deploy (push) Successful in 3m56s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 6s

This commit is contained in:
devops committed 2026-10-12 18:35:49 +00:00
1 parent efb3c473c4
commit 11dd549c7c
2 files changed
+12 -3

No files matched your search

@@ -46,6 +46,8 @@ export class PrescriptionsController {
private readonly mediaService: MediaService,
) {}
@UseGuards(JwtAuthGuard)
@ApiBearerAuth()
@Post('upload')
@ApiOperation({ summary: 'آپلود تصویر یا فایل نسخه دارویی توسط کاربر' })
@UseInterceptors(
@@ -72,6 +74,8 @@ export class PrescriptionsController {
return { success: true, data };
}
@UseGuards(JwtAuthGuard)
@ApiBearerAuth()
@Post()
@ApiOperation({ summary: 'بارگذاری نسخه جدید توسط کاربر' })
create(