Removed community user

This commit is contained in:
hannathkadher
2024-10-29 13:19:47 +04:00
parent 9aecb3c3bc
commit 84bcf098d3
4 changed files with 9 additions and 33 deletions
@@ -6,17 +6,11 @@ import { CommunityRepository } from '@app/common/modules/community/repositories'
export class CommunityPermissionService {
constructor(private readonly communityRepository: CommunityRepository) {}
async checkUserPermission(
communityUuid: string,
userUuid: string,
): Promise<void> {
async checkUserPermission(communityUuid: string): Promise<void> {
try {
const communityData = await this.communityRepository.findOne({
where: {
uuid: communityUuid,
users: {
uuid: userUuid,
},
},
relations: ['users'],
});