"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "bigbluebutton-html5/imports/ui/components/video-provider/service.js" between
bigbluebutton-2.3.6.tar.gz and bigbluebutton-2.3.7.tar.gz

About: BigBlueButton is a complete web conferencing system (mainly designed for online learning).

service.js  (bigbluebutton-2.3.6):service.js  (bigbluebutton-2.3.7)
skipping to change at line 522 skipping to change at line 522
return streams; return streams;
} }
disableCam() { disableCam() {
const m = Meetings.findOne({ meetingId: Auth.meetingID }, const m = Meetings.findOne({ meetingId: Auth.meetingID },
{ fields: { 'lockSettingsProps.disableCam': 1 } }); { fields: { 'lockSettingsProps.disableCam': 1 } });
return m.lockSettingsProps ? m.lockSettingsProps.disableCam : false; return m.lockSettingsProps ? m.lockSettingsProps.disableCam : false;
} }
webcamsOnlyForModerator() { webcamsOnlyForModerator() {
const m = Meetings.findOne({ meetingId: Auth.meetingID }, const meeting = Meetings.findOne({ meetingId: Auth.meetingID },
{ fields: { 'usersProp.webcamsOnlyForModerator': 1 } }); { fields: { 'usersProp.webcamsOnlyForModerator': 1 } });
return m?.usersProp ? m.usersProp.webcamsOnlyForModerator : false; const user = Users.findOne({ userId: Auth.userID }, { fields: { locked: 1, r
ole: 1 } });
if (meeting?.usersProp && user?.role !== ROLE_MODERATOR && user?.locked) {
return meeting.usersProp.webcamsOnlyForModerator;
}
return false;
} }
getInfo() { getInfo() {
const m = Meetings.findOne({ meetingId: Auth.meetingID }, const m = Meetings.findOne({ meetingId: Auth.meetingID },
{ fields: { 'voiceProp.voiceConf': 1 } }); { fields: { 'voiceProp.voiceConf': 1 } });
const voiceBridge = m.voiceProp ? m.voiceProp.voiceConf : null; const voiceBridge = m.voiceProp ? m.voiceProp.voiceConf : null;
return { return {
userId: Auth.userID, userId: Auth.userID,
userName: Auth.fullname, userName: Auth.fullname,
meetingId: Auth.meetingID, meetingId: Auth.meetingID,
 End of changes. 2 change blocks. 
2 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)