permission changes are different than edit rights
This commit is contained in:
parent
31da5c3011
commit
e95c5ee8ec
1 changed files with 2 additions and 1 deletions
|
@ -79,6 +79,7 @@ class Links extends Component {
|
||||||
render = () => {
|
render = () => {
|
||||||
const { topic, ActiveMapper } = this.props
|
const { topic, ActiveMapper } = this.props
|
||||||
const authorizedToEdit = topic.authorizeToEdit(ActiveMapper)
|
const authorizedToEdit = topic.authorizeToEdit(ActiveMapper)
|
||||||
|
const authorizedPermissionChange = topic.authorizePermissionChange(ActiveMapper)
|
||||||
const metacode = topic.getMetacode()
|
const metacode = topic.getMetacode()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -133,7 +134,7 @@ class Links extends Component {
|
||||||
</a>
|
</a>
|
||||||
<Permission
|
<Permission
|
||||||
permission={topic.get('permission')}
|
permission={topic.get('permission')}
|
||||||
authorizedToEdit={authorizedToEdit}
|
authorizedToEdit={authorizedPermissionChange}
|
||||||
updateTopic={this.props.updateTopic}
|
updateTopic={this.props.updateTopic}
|
||||||
/>
|
/>
|
||||||
<div className="clearfloat"></div>
|
<div className="clearfloat"></div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue