Skip to content

Commit

Permalink
Showing Leave channel for guest accounts in town square (mattermost#3961
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jespino committed Oct 15, 2019
1 parent be39771 commit c349fc8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
import {Permissions} from 'mattermost-redux/constants';

import {Constants, ModalIdentifiers} from 'utils/constants';
import {localizeMessage} from 'utils/utils';
import {localizeMessage, isGuest} from 'utils/utils';

import MobileChannelHeaderPlug from 'plugins/mobile_channel_header_plug';

Expand Down Expand Up @@ -278,7 +278,7 @@ export default class ChannelHeaderDropdown extends React.PureComponent {
id='channelLeaveChannel'
channel={channel}
isDefault={isDefault}
isGuestUser={user.is_guest}
isGuestUser={isGuest(user)}
/>
<MenuItemCloseChannel
id='channelCloseChannel'
Expand Down

0 comments on commit c349fc8

Please sign in to comment.