summaryrefslogtreecommitdiffstats
path: root/webapp/components/channel_members_modal.jsx
diff options
context:
space:
mode:
authorRyan Wang <R-Wang97@users.noreply.github.com>2017-04-20 11:25:03 -0400
committerGeorge Goldberg <george@gberg.me>2017-04-20 16:25:03 +0100
commitff8b91027fd531880ea951bee1a0b63e506b0ae8 (patch)
tree124123e3ac17302fc1a395ede7b31c03f227f548 /webapp/components/channel_members_modal.jsx
parentf758f9ff3a617dd5939e1e7851fdbe10d03cd5a8 (diff)
downloadchat-ff8b91027fd531880ea951bee1a0b63e506b0ae8.tar.gz
chat-ff8b91027fd531880ea951bee1a0b63e506b0ae8.tar.bz2
chat-ff8b91027fd531880ea951bee1a0b63e506b0ae8.zip
Add modified view members modal to Town Square (#5695)
Diffstat (limited to 'webapp/components/channel_members_modal.jsx')
-rw-r--r--webapp/components/channel_members_modal.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/channel_members_modal.jsx b/webapp/components/channel_members_modal.jsx
index de3a4a5e7..dab51a1bd 100644
--- a/webapp/components/channel_members_modal.jsx
+++ b/webapp/components/channel_members_modal.jsx
@@ -8,6 +8,7 @@ import UserStore from 'stores/user_store.jsx';
import ChannelStore from 'stores/channel_store.jsx';
import {canManageMembers} from 'utils/channel_utils.jsx';
+import {Constants} from 'utils/constants.jsx';
import React from 'react';
import {Modal} from 'react-bootstrap';
@@ -35,7 +36,7 @@ export default class ChannelMembersModal extends React.Component {
const isChannelAdmin = ChannelStore.isChannelAdminForCurrentChannel();
let addMembersButton = null;
- if (canManageMembers(this.state.channel, isSystemAdmin, isTeamAdmin, isChannelAdmin)) {
+ if (canManageMembers(this.state.channel, isSystemAdmin, isTeamAdmin, isChannelAdmin) && this.state.channel.name !== Constants.DEFAULT_CHANNEL) {
addMembersButton = (
<a
id='showInviteModal'