diff options
author | bobzel <zzzman@gmail.com> | 2020-08-17 13:47:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 13:47:20 -0400 |
commit | 32e4751eb2d0506b11405ace2c03213515e736cb (patch) | |
tree | fb68e95fc8c81b3e2640159480f38a612f45ebe4 /src/client/views/nodes/DocumentView.tsx | |
parent | 227888ecdd9e83b9a2d99cb93890ae018274ea4d (diff) | |
parent | 2c1e3a0c657914c7426ac7347bdb2781e1fa49bd (diff) |
Merge pull request #619 from browngraphicslab/acls_uv
Hopefully final acls change
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index ede0d8c99..b5d210b4d 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -763,7 +763,8 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu Doc.AreProtosEqual(this.props.Document, Doc.UserDoc()) && moreItems.push({ description: "Toggle Always Show Link End", event: () => Doc.UserDoc()["documentLinksButton-hideEnd"] = !Doc.UserDoc()["documentLinksButton-hideEnd"], icon: "eye" }); } - moreItems.push({ description: "Close", event: this.deleteClicked, icon: "times" }); + const collectionAcl = GetEffectiveAcl(this.props.ContainingCollectionDoc?.[DataSym]); + if (collectionAcl === AclAdmin || collectionAcl === AclEdit) moreItems.push({ description: "Close", event: this.deleteClicked, icon: "times" }); !more && cm.addItem({ description: "More...", subitems: moreItems, icon: "hand-point-right" }); cm.moveAfter(cm.findByDescription("More...")!, cm.findByDescription("OnClick...")!); |