prevent user item displaying as locked for shared notes lock

This commit is contained in:
KDSBrowne 2020-05-12 19:43:10 +00:00
parent 5f4676ec63
commit c28b0108ea
3 changed files with 5 additions and 5 deletions

View File

@ -286,8 +286,7 @@ const isMeetingLocked = (id) => {
if (lockSettings.disableCam
|| lockSettings.disableMic
|| lockSettings.disablePrivateChat
|| lockSettings.disablePublicChat
|| lockSettings.disableNote) {
|| lockSettings.disablePublicChat) {
isLocked = true;
}
}

View File

@ -57,7 +57,7 @@ class UserNotes extends Component {
}
renderNotes() {
const { intl, disableNotes } = this.props;
const { intl, disableNote } = this.props;
const { unread } = this.state;
let notification = null;
@ -86,7 +86,7 @@ class UserNotes extends Component {
<div>
{intl.formatMessage(intlMessages.sharedNotes)}
</div>
{disableNotes
{disableNote
? (
<div className={styles.noteLock}>
<Icon iconName="lock" />

View File

@ -18,10 +18,11 @@ export default withTracker(() => {
role: 1,
},
}).role === ROLE_VIEWER;
const shouldDisableNote = (Meeting.lockSettingsProps.disableNote) && isViewer;
return {
isPanelOpened: NoteService.isPanelOpened(),
revs: NoteService.getRevs(),
disableNotes: Meeting.lockSettingsProps.disableNote && isViewer,
disableNote: shouldDisableNote,
};
})(UserNotesContainer);