diff options
author | Ryan Wang <R-Wang97@users.noreply.github.com> | 2017-04-20 11:25:03 -0400 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-04-20 16:25:03 +0100 |
commit | ff8b91027fd531880ea951bee1a0b63e506b0ae8 (patch) | |
tree | 124123e3ac17302fc1a395ede7b31c03f227f548 /webapp/components/channel_members_modal.jsx | |
parent | f758f9ff3a617dd5939e1e7851fdbe10d03cd5a8 (diff) | |
download | chat-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.jsx | 3 |
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' |