Skip to content
Snippets Groups Projects
Unverified Commit 4211d676 authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #12871 from antobinary/chat-selector

fix(breakouts): Do not allow users to obtain 'redirectToHtml5JoinURL' for others
parents 6b61492e aa0ea219
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,28 @@ function breakouts(role) {
],
};
return Breakouts.find(selector);
const fields = {
fields: {
users: {
$elemMatch: {
// do not allow users to obtain 'redirectToHtml5JoinURL' for others
userId,
},
},
breakoutId: 1,
externalId: 1,
freeJoin: 1,
isDefaultName: 1,
joinedUsers: 1,
name: 1,
parentMeetingId: 1,
sequence: 1,
shortName: 1,
timeRemaining: 1,
},
};
return Breakouts.find(selector, fields);
}
function publish(...args) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment