Merge pull request #46 from SyncrowIOT/remove-admin-gurad-unit-user

Refactor authentication guard in UnitController's addUserUnit method
This commit is contained in:
faris Aljohari
2024-06-02 23:13:08 +03:00
committed by GitHub

View File

@ -100,7 +100,7 @@ export class UnitController {
}
}
@ApiBearerAuth()
@UseGuards(AdminRoleGuard, CheckUserUnitGuard)
@UseGuards(JwtAuthGuard, CheckUserUnitGuard)
@Post('user')
async addUserUnit(@Body() addUserUnitDto: AddUserUnitDto) {
try {