bigbluebutton-Github/bigbluebutton-html5/imports/api/breakouts/server/publishers.js
Gabriel Carvalho de Campes 39dffd68b4 Update breakout rooms in html5
2016-11-14 09:57:10 -02:00

16 lines
528 B
JavaScript

import Breakouts from '/imports/api/breakouts';
import { Meteor } from 'meteor/meteor';
import { check } from 'meteor/check';
import Logger from '/imports/startup/server/logger';
import { isAllowedTo } from '/imports/startup/server/userPermissions';
Meteor.publish('breakouts', (credentials) => {
Logger.info(`PUBLISHIIIIIIING breakouts for ${credentials.meetingId}`);
return Breakouts.find({
$or: [
{ parentMeetingId: credentials.meetingId },
{ breakoutMeetingId: credentials.meetingId },
],
});
});