1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Only show editing UI for aliases/related_groups for users /w power

This commit is contained in:
Luke Barnard
2017-10-24 16:19:09 +01:00
parent ba46faf1b1
commit ee7ebc425c
4 changed files with 16 additions and 11 deletions

View File

@@ -262,6 +262,7 @@ module.exports = React.createClass({
items={this.state.domainToAliases[localDomain] || []}
newItem={this.state.newAlias}
onNewItemChanged={this.onNewAliasChanged}
canEdit={this.props.canSetAliases}
onItemAdded={this.onLocalAliasAdded}
onItemEdited={this.onLocalAliasChanged}
onItemRemoved={this.onLocalAliasDeleted}