feat: Added ability to disable sharing at collection (#1875)

* feat: Added ability to disable sharing at collection

* fix: Disable all previous share links when disabling collection share
Language

* fix: Disable document sharing for read-only collection members

* wip

* test

* fix: Clear policies after updating sharing settings

* chore: Less ambiguous language

* feat: Allow setting sharing choice on collection creation
This commit is contained in:
Tom Moor
2021-02-09 19:04:03 -08:00
committed by GitHub
parent cc90c8de1c
commit 097359bf7c
20 changed files with 227 additions and 33 deletions

View File

@ -16,6 +16,7 @@ export default class Collection extends BaseModel {
icon: string;
color: string;
private: boolean;
sharing: boolean;
documents: NavigationNode[];
createdAt: ?string;
updatedAt: ?string;
@ -112,6 +113,7 @@ export default class Collection extends BaseModel {
"name",
"color",
"description",
"sharing",
"icon",
"private",
"sort",