diff --git a/src/services/experience.service.ts b/src/services/experience.service.ts index 66736d49e..d620d57da 100644 --- a/src/services/experience.service.ts +++ b/src/services/experience.service.ts @@ -183,6 +183,14 @@ export class ExperienceService { userId: {eq: this.currentUser[securityId]}, }, ); + const experience = await this.experienceRepository.findById(id); + + if ( + experience?.exclusive === true && + this.currentUser[securityId] !== experience.user?.id + ) { + return []; + } return this.postService.find(filter, id, true); }