diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js
index 7d64820c5e..1b4b5cb809 100644
--- a/src/components/structures/GroupView.js
+++ b/src/components/structures/GroupView.js
@@ -55,6 +55,9 @@ const CategoryRoomList = React.createClass({
name: PropTypes.string,
}).isRequired,
}),
+
+ // Whether the list should be editable
+ editing: PropTypes.bool.isRequired,
},
render: function() {
@@ -136,6 +139,9 @@ const RoleUserList = React.createClass({
}).isRequired,
}),
groupId: PropTypes.string.isRequired,
+
+ // Whether the list should be editable
+ editing: PropTypes.bool.isRequired,
},
onAddUsersClicked: function(ev) {
@@ -178,6 +184,13 @@ const RoleUserList = React.createClass({
render: function() {
const TintableSvg = sdk.getComponent("elements.TintableSvg");
+ const addButton = this.props.editing ?
+ (