summaryrefslogtreecommitdiffstats
path: root/webapp/components/new_channel_modal/new_channel_modal.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/new_channel_modal/new_channel_modal.jsx')
-rw-r--r--webapp/components/new_channel_modal/new_channel_modal.jsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/webapp/components/new_channel_modal/new_channel_modal.jsx b/webapp/components/new_channel_modal/new_channel_modal.jsx
index 60c0271a7..721defe08 100644
--- a/webapp/components/new_channel_modal/new_channel_modal.jsx
+++ b/webapp/components/new_channel_modal/new_channel_modal.jsx
@@ -192,13 +192,11 @@ export default class NewChannelModal extends React.PureComponent {
</a>
);
- const isAdmin = this.props.isTeamAdmin || this.props.isSystemAdmin;
-
- if (!ChannelUtils.showCreateOption(Constants.OPEN_CHANNEL, isAdmin, this.props.isSystemAdmin)) {
+ if (!ChannelUtils.showCreateOption(Constants.OPEN_CHANNEL, this.props.isTeamAdmin, this.props.isSystemAdmin)) {
createPublicChannelLink = null;
}
- if (!ChannelUtils.showCreateOption(Constants.PRIVATE_CHANNEL, isAdmin, this.props.isSystemAdmin)) {
+ if (!ChannelUtils.showCreateOption(Constants.PRIVATE_CHANNEL, this.props.isTeamAdmin, this.props.isSystemAdmin)) {
createPrivateChannelLink = null;
}