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

@ -110,6 +110,7 @@ module.exports = React.createClass({
items={this.state.newGroupsList}
className={"mx_RelatedGroupSettings"}
newItem={this.state.newGroupId}
canEdit={this.props.canSetRelatedRooms}
onNewItemChanged={this.onNewGroupChanged}
onItemAdded={this.onGroupAdded}
onItemEdited={this.onGroupEdited}