only toggle if authorized

This commit is contained in:
Connor Turland 2017-03-22 16:13:59 +00:00
parent f2a7cc1f19
commit 49102ea474

View file

@ -88,7 +88,7 @@ class Links extends Component {
<div className="linkItem icon metacodeItem"
style={{ zIndex: this.state.showMetacodeTitle ? 4 : 1 }}
onMouseLeave={() => this.setState({ showMetacodeTitle: false, showMetacodeSelect: false })}
onClick={this.handleMetacodeBarClick}
onClick={() => authorizedToEdit && this.handleMetacodeBarClick()}
>
<div className={`metacodeTitle mbg${metacode.get('id')}`}
style={{ display: this.state.showMetacodeTitle ? 'block' : 'none' }}