Disable removal of items if the user doesn't have permission
This commit is contained in:
parent
003d0eb0bf
commit
1e6594ceba
3 changed files with 25 additions and 16 deletions
|
@ -240,6 +240,7 @@ export default class AliasSettings extends React.Component {
|
|||
items={this.state.domainToAliases[localDomain] || []}
|
||||
newItem={this.state.newAlias}
|
||||
onNewItemChanged={this.onNewAliasChanged}
|
||||
canRemove={this.props.canSetAliases}
|
||||
canEdit={this.props.canSetAliases}
|
||||
onItemAdded={this.onLocalAliasAdded}
|
||||
onItemRemoved={this.onLocalAliasDeleted}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue