mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 10:46:17 +00:00
Merge pull request #46 from SyncrowIOT/remove-admin-gurad-unit-user
Refactor authentication guard in UnitController's addUserUnit method
This commit is contained in:
@ -100,7 +100,7 @@ export class UnitController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ApiBearerAuth()
|
@ApiBearerAuth()
|
||||||
@UseGuards(AdminRoleGuard, CheckUserUnitGuard)
|
@UseGuards(JwtAuthGuard, CheckUserUnitGuard)
|
||||||
@Post('user')
|
@Post('user')
|
||||||
async addUserUnit(@Body() addUserUnitDto: AddUserUnitDto) {
|
async addUserUnit(@Body() addUserUnitDto: AddUserUnitDto) {
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user