From 385e1ca1fb4b14d96bd540032c5d832acba53ae4 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 22 Mar 2016 12:54:08 +0000 Subject: [PATCH] only let people add aliases if they canSeetAliases --- .../views/room_settings/AliasSettings.js | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/components/views/room_settings/AliasSettings.js b/src/components/views/room_settings/AliasSettings.js index 19e18fed48..34b6083c30 100644 --- a/src/components/views/room_settings/AliasSettings.js +++ b/src/components/views/room_settings/AliasSettings.js @@ -289,19 +289,21 @@ module.exports = React.createClass({ ); })} -
- -
- Add -
-
+ { this.props.canSetAliases ? +
+ +
+ Add +
+
: "" + } { remote_aliases_section }