diff options
author | srichman333 <sarah_n_richman@brown.edu> | 2023-05-04 15:45:50 -0400 |
---|---|---|
committer | srichman333 <sarah_n_richman@brown.edu> | 2023-05-04 15:45:50 -0400 |
commit | abcf1167340f9f411e7712d11f2110625b0938d8 (patch) | |
tree | 74619fc06d9654b20a2a65ecf98ed65832698714 /src/client/views/PropertiesView.tsx | |
parent | 50876028b994044f2a9426a4efb85a363f0d7168 (diff) |
simple checkbox so that users can choose to override more private acl docs
Diffstat (limited to 'src/client/views/PropertiesView.tsx')
-rw-r--r-- | src/client/views/PropertiesView.tsx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx index 984c2dc04..94a6d5639 100644 --- a/src/client/views/PropertiesView.tsx +++ b/src/client/views/PropertiesView.tsx @@ -368,14 +368,7 @@ export class PropertiesView extends React.Component<PropertiesViewProps> { @undoBatch changePermissions = (e: any, user: string) => { const docs = (SelectionManager.Views().length < 2 ? [this.selectedDoc] : SelectionManager.Views().map(dv => dv.props.Document)).filter(doc => doc).map(doc => (this.layoutDocAcls ? doc : DocCast(doc)[DataSym])); - if (user=="Public"){ - // docs[0]['acl-' +user] = e.currentTarget.value as SharingPermissions; - SharingManager.Instance.shareFromPropertiesSidebar(user, e.currentTarget.value as SharingPermissions, docs); - } - else{ - - SharingManager.Instance.shareFromPropertiesSidebar(user, e.currentTarget.value as SharingPermissions, docs); - } + SharingManager.Instance.shareFromPropertiesSidebar(user, e.currentTarget.value as SharingPermissions, docs); }; /** |