From 49102ea47472abf73844adfdb032a01eeeb24615 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 22 Mar 2017 16:13:59 +0000 Subject: [PATCH] only toggle if authorized --- frontend/src/components/TopicCard/Links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/TopicCard/Links.js b/frontend/src/components/TopicCard/Links.js index 401fb565..c4b4796f 100644 --- a/frontend/src/components/TopicCard/Links.js +++ b/frontend/src/components/TopicCard/Links.js @@ -88,7 +88,7 @@ class Links extends Component {
this.setState({ showMetacodeTitle: false, showMetacodeSelect: false })} - onClick={this.handleMetacodeBarClick} + onClick={() => authorizedToEdit && this.handleMetacodeBarClick()} >