Skip to content

Commit

Permalink
Removed shared & sidebar button
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratatinator97 committed Mar 28, 2024
1 parent 1e5f365 commit bdbf86b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/collection/collection.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit bdbf86b

Please sign in to comment.