Merge pull request #6677 from jfsiebel/manage-users-button-visibility

Don't show manage users option for viewers
This commit is contained in:
Anton Georgiev 2019-01-29 14:25:41 -05:00 committed by GitHub
commit d3cdeb5266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,20 +203,24 @@ class UserParticipants extends Component {
<div className={styles.container}>
<h2 className={styles.smallTitle}>
{intl.formatMessage(intlMessages.usersTitle)}
&nbsp;(
&nbsp;(
{users.length}
)
)
</h2>
<UserOptionsContainer {...{
users,
muteAllUsers,
muteAllExceptPresenter,
setEmojiStatus,
meeting,
currentUser,
}}
/>
{currentUser.isModerator
? (
<UserOptionsContainer {...{
users,
muteAllUsers,
muteAllExceptPresenter,
setEmojiStatus,
meeting,
currentUser,
}}
/>
) : null
}
</div>
)
: <hr className={styles.separator} />