Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: we announce documents to all connected peers and we share documents with anyone who knows the document ID. Most applications probably want some control over authorization. Solution: introduce `SharePolicy`, which is a trait users implement and pass to `Repo::with_share_policy` to control when documents are shared.
- Loading branch information