josephg / ShareJS

Collaborative editing in any app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Documents using sharejs

surajdevesan opened this issue · comments

I like to share multiple documents using sharejs each document should be shared with only specific users.The problem i am facing now is that i tried implementing sharejs with the project every document is getting shared with everyone.The change which i reflect in one documents is getting reflected in every document and in every user page. I am really new in sharejs and nodejs .It would be a great if someone could explain how to implement this

You have to handle the access to the document externally, for example keep a list of authorized users for each document and only show those people the document. If someone could get around this and tries to access the document illegally, you can rely on sharejs built in auth feature.