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

View File

@ -20,7 +20,7 @@ import { GetCommunityChildDto } from '../dtos/get.community.dto';
import { UpdateCommunityNameDto } from '../dtos/update.community.dto';
import { CheckUserCommunityGuard } from 'src/guards/user.community.guard';
import { AdminRoleGuard } from 'src/guards/admin.role.guard';
import { UserRoleGuard } from 'src/guards/user.role.guard';
import { JwtAuthGuard } from '@app/common/guards/jwt.auth.guard';
@ApiTags('Community Module')
@Controller({
@ -47,7 +47,7 @@ export class CommunityController {
}
@ApiBearerAuth()
@UseGuards(UserRoleGuard)
@UseGuards(JwtAuthGuard)
@Get(':communityUuid')
async getCommunityByUuid(@Param('communityUuid') communityUuid: string) {
try {
@ -63,7 +63,7 @@ export class CommunityController {
}
@ApiBearerAuth()
@UseGuards(UserRoleGuard)
@UseGuards(JwtAuthGuard)
@Get('child/:communityUuid')
async getCommunityChildByUuid(
@Param('communityUuid') communityUuid: string,
@ -84,7 +84,7 @@ export class CommunityController {
}
@ApiBearerAuth()
@UseGuards(UserRoleGuard)
@UseGuards(JwtAuthGuard)
@Get('user/:userUuid')
async getCommunitiesByUserId(@Param('userUuid') userUuid: string) {
try {
@ -111,7 +111,7 @@ export class CommunityController {
}
}
@ApiBearerAuth()
@UseGuards(UserRoleGuard)
@UseGuards(JwtAuthGuard)
@Put('rename/:communityUuid')
async renameCommunityByUuid(
@Param('communityUuid') communityUuid: string,