bigbluebutton-Github/bigbluebutton-html5/imports/api/presentation-pods/server/utils/isPodPresenter.js
2018-08-01 10:21:33 -03:00

10 lines
367 B
JavaScript

import Slides from '/imports/api/slides';
import PresentationPods from '/imports/api/presentation-pods';
export default function isPodPresenter(meetingId, whiteboardId, userId) {
const slide = Slides.findOne({ meetingId, id: whiteboardId });
const pod = PresentationPods.findOne({ meetingId, podId: slide.podId });
return pod.currentPresenterId === userId;
}