bigbluebutton-Github/bigbluebutton-html5/imports/api/whiteboard-multi-user/server/handlers/modifyWhiteboardAccess.js
2018-04-09 16:18:49 -07:00

13 lines
394 B
JavaScript

import { check } from 'meteor/check';
import modifyWhiteboardAccess from '../modifiers/modifyWhiteboardAccess';
export default function handleModifyWhiteboardAccess({ body }, meetingId) {
const { multiUser, whiteboardId } = body;
check(multiUser, Boolean);
check(whiteboardId, String);
check(meetingId, String);
return modifyWhiteboardAccess(meetingId, whiteboardId, multiUser);
}