diff --git a/src/__tests__/acceptance/post.acceptance.ts b/src/__tests__/acceptance/post.acceptance.ts index 3c4bdd383..4e4f01dba 100644 --- a/src/__tests__/acceptance/post.acceptance.ts +++ b/src/__tests__/acceptance/post.acceptance.ts @@ -104,25 +104,6 @@ describe('PostApplication', function () { expect(result).to.containDeep(myriadPost); }); - it('reject creates a post in lite version when action is fulfilled', async () => { - await userRepository.updateById(user.id, {fullAccess: false}); - for (let i = 0; i < 15; i++) { - await givenMyriadPostInstance(postRepository, { - createdBy: user.id.toString(), - platform: PlatformType.MYRIAD, - }); - } - const myriadPost: Partial = givenPost({ - createdBy: user.id.toString(), - }); - await client - .post('/user/posts') - .set('Authorization', `Bearer ${token}`) - .send(myriadPost) - .expect(422); - await userRepository.updateById(user.id, {fullAccess: true}); - }); - context('when dealing with a single persisted post', () => { let persistedPost: PostWithRelations; diff --git a/src/services/user.service.ts b/src/services/user.service.ts index 197fef04b..d03ad870c 100644 --- a/src/services/user.service.ts +++ b/src/services/user.service.ts @@ -788,7 +788,6 @@ export class UserService { } public async createPost(draftPost: DraftPost): Promise { - await this.haveFullAccess(ControllerType.POST); draftPost.createdBy = this.currentUser[securityId]; return this.postService.create(draftPost); }