diff options
author | srichman333 <sarah_n_richman@brown.edu> | 2023-06-15 13:41:48 -0400 |
---|---|---|
committer | srichman333 <sarah_n_richman@brown.edu> | 2023-06-15 13:41:48 -0400 |
commit | a366394a1db42628b7299947e6c1be2845c9a77d (patch) | |
tree | ab5b9adf07e6b43acd6a181f390fa1ec3abd8732 /src/client/util/SharingManager.tsx | |
parent | 93d9daeda0cf2f411e8f642bc90fa561d1877c60 (diff) |
fixed group sharing distribution bug and group sharing in the properties menu
Diffstat (limited to 'src/client/util/SharingManager.tsx')
-rw-r--r-- | src/client/util/SharingManager.tsx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/client/util/SharingManager.tsx b/src/client/util/SharingManager.tsx index a51a71268..6cbc060fa 100644 --- a/src/client/util/SharingManager.tsx +++ b/src/client/util/SharingManager.tsx @@ -200,13 +200,14 @@ export class SharingManager extends React.Component<{}> { const acl = `acl-${key}`; const isDashboard = DocListCast(Doc.MyDashboards.data).indexOf(target) !== -1; - // setting the same acl for a docs within the doc being shared - if (this.overridePrivate) { - var childDocs = DocListCast(target.data); - childDocs.map(doc => { + // setting the same acl for a docs within the doc being shared if they haven't been set yet + // or if the 'Override Private' checkbox is selected + var childDocs = DocListCast(target.data); + childDocs.map(doc => { + if (this.overridePrivate || doc[acl]==undefined){ this.setInternalGroupSharing(group, permission, doc); - }); - } + } + }); const docs = SelectionManager.Views().length < 2 ? [target] : SelectionManager.Views().map(docView => docView.props.Document); |