Remove USER role

This commit is contained in:
faris Aljohari
2024-05-18 23:00:22 +03:00
parent 1bc8fee061
commit 6415d78992
23 changed files with 107 additions and 136 deletions
+6 -6
View File
@@ -17,7 +17,7 @@ import { GetFloorChildDto } from '../dtos/get.floor.dto';
import { UpdateFloorNameDto } from '../dtos/update.floor.dto';
import { CheckBuildingTypeGuard } from 'src/guards/building.type.guard';
import { CheckUserFloorGuard } from 'src/guards/user.floor.guard';
import { UserRoleGuard } from 'src/guards/user.role.guard';
import { JwtAuthGuard } from '@app/common/guards/jwt.auth.guard';
import { AdminRoleGuard } from 'src/guards/admin.role.guard';
@ApiTags('Floor Module')
@@ -44,7 +44,7 @@ export class FloorController {
}
@ApiBearerAuth()
@UseGuards(UserRoleGuard)
@UseGuards(JwtAuthGuard)
@Get(':floorUuid')
async getFloorByUuid(@Param('floorUuid') floorUuid: string) {
try {
@@ -59,7 +59,7 @@ export class FloorController {
}
@ApiBearerAuth()
@UseGuards(UserRoleGuard)
@UseGuards(JwtAuthGuard)
@Get('child/:floorUuid')
async getFloorChildByUuid(
@Param('floorUuid') floorUuid: string,
@@ -79,7 +79,7 @@ export class FloorController {
}
}
@ApiBearerAuth()
@UseGuards(UserRoleGuard)
@UseGuards(JwtAuthGuard)
@Get('parent/:floorUuid')
async getFloorParentByUuid(@Param('floorUuid') floorUuid: string) {
try {
@@ -109,7 +109,7 @@ export class FloorController {
}
@ApiBearerAuth()
@UseGuards(UserRoleGuard)
@UseGuards(JwtAuthGuard)
@Get('user/:userUuid')
async getFloorsByUserId(@Param('userUuid') userUuid: string) {
try {
@@ -123,7 +123,7 @@ export class FloorController {
}
@ApiBearerAuth()
@UseGuards(UserRoleGuard)
@UseGuards(JwtAuthGuard)
@Put('rename/:floorUuid')
async renameFloorByUuid(
@Param('floorUuid') floorUuid: string,