prevent user item unlock affecting shared notes
This commit is contained in:
parent
c28b0108ea
commit
26143e5889
@ -43,7 +43,7 @@ const isLocked = () => {
|
||||
const meeting = Meetings.findOne({ meetingId: Auth.meetingID }, { fields: { 'lockSettingsProps.disableNote': 1 } });
|
||||
const user = Users.findOne({ userId: Auth.userID }, { fields: { locked: 1, role: 1 } });
|
||||
|
||||
if (meeting.lockSettingsProps && user.locked && user.role !== ROLE_MODERATOR) {
|
||||
if (meeting.lockSettingsProps && user.role !== ROLE_MODERATOR) {
|
||||
return meeting.lockSettingsProps.disableNote;
|
||||
}
|
||||
return false;
|
||||
@ -75,7 +75,7 @@ const isEnabled = () => {
|
||||
const toggleNotePanel = () => {
|
||||
Session.set(
|
||||
'openPanel',
|
||||
isPanelOpened() ? 'userlist' : 'note'
|
||||
isPanelOpened() ? 'userlist' : 'note',
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -101,7 +101,7 @@ class UserNotes extends Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { intl } = this.props;
|
||||
const { intl, disableNote } = this.props;
|
||||
|
||||
if (!NoteService.isEnabled()) return null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user