Only show membership settings when editing

pull/21833/head
Luke Barnard 2017-10-17 11:59:52 +01:00
parent 495465e865
commit 7df3335570
1 changed files with 1 additions and 1 deletions

View File

@ -757,7 +757,7 @@ export default React.createClass({
</div>
</div>
</div>;
} else if (group.myMembership === 'join') {
} else if (group.myMembership === 'join' && this.state.editing) {
let youAreAMemberText = _t("You are a member of this group");
if (this.state.summary.user && this.state.summary.user.is_privileged) {
youAreAMemberText = _t("You are an administrator of this group");