From 9643784f850daf642080de1768ce1eb99753ac9d Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 26 Oct 2017 14:31:27 +0100 Subject: [PATCH] Only show group settings cog to members Non-members have no settings to change. --- src/components/structures/GroupView.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 314a36e486..9d87f84aef 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -964,13 +964,15 @@ export default React.createClass({ , ); } else { - rightButtons.push( - - - , - ); + if (summary.user && summary.user.membership === 'join') { + rightButtons.push( + + + , + ); + } if (this.props.collapsedRhs) { rightButtons.push(