From bdbf86bdc94f9fa2307494466cab4701647058bd Mon Sep 17 00:00:00 2001 From: Alexandros SIDIRAS Date: Thu, 28 Mar 2024 09:12:29 +0100 Subject: [PATCH] Removed shared & sidebar button --- src/collection/collection.service.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/collection/collection.service.ts b/src/collection/collection.service.ts index f872c22..5c53931 100644 --- a/src/collection/collection.service.ts +++ b/src/collection/collection.service.ts @@ -169,11 +169,8 @@ export class CollectionService { for(let sharer of sharers){ const sharedWithMe = await this.getCollectionById(sharer.shared, sharer); this.collectionRepository.pushCollection(sharedWithMe, collection); - const directSharer = sharer.directSharers.indexOf(user.username); - if(directSharer!=-1){ - const sharerRoot = await this.getCollectionById(sharer.root, sharer); - this.collectionRepository.pushCollection(sharerRoot, collection); - } + const sharerRoot = await this.getCollectionById(sharer.root, sharer); + this.collectionRepository.pushCollection(sharerRoot, collection); if(multipleShareCollectionDto.access==1){ if((collection.editors.indexOf(sharer.username)==-1) && (collection.viewers.indexOf(sharer.username)==-1)){ const notification = await this.createNotif(collection, user, "collection", "share");