mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-23 14:17:55 +00:00
Refactor authentication guard in UnitController's addUserUnit method
This commit is contained in:
@@ -100,7 +100,7 @@ export class UnitController {
|
||||
}
|
||||
}
|
||||
@ApiBearerAuth()
|
||||
@UseGuards(AdminRoleGuard, CheckUserUnitGuard)
|
||||
@UseGuards(JwtAuthGuard, CheckUserUnitGuard)
|
||||
@Post('user')
|
||||
async addUserUnit(@Body() addUserUnitDto: AddUserUnitDto) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user