permission changes are different than edit rights

This commit is contained in:
Connor Turland 2017-02-26 16:18:26 +00:00
parent 31da5c3011
commit e95c5ee8ec

View file

@ -79,6 +79,7 @@ class Links extends Component {
render = () => {
const { topic, ActiveMapper } = this.props
const authorizedToEdit = topic.authorizeToEdit(ActiveMapper)
const authorizedPermissionChange = topic.authorizePermissionChange(ActiveMapper)
const metacode = topic.getMetacode()
return (
@ -133,7 +134,7 @@ class Links extends Component {
</a>
<Permission
permission={topic.get('permission')}
authorizedToEdit={authorizedToEdit}
authorizedToEdit={authorizedPermissionChange}
updateTopic={this.props.updateTopic}
/>
<div className="clearfloat"></div>