bigbluebutton-Github/bigbluebutton-html5/imports/api/whiteboard-multi-user/server/handlers/modifyWhiteboardAccess.js

13 lines
428 B
JavaScript
Raw Normal View History

import { check } from 'meteor/check';
2018-04-10 07:18:49 +08:00
import modifyWhiteboardAccess from '../modifiers/modifyWhiteboardAccess';
export default async function handleModifyWhiteboardAccess({ body }, meetingId) {
2018-04-10 07:18:49 +08:00
const { multiUser, whiteboardId } = body;
check(multiUser, Array);
2018-04-10 07:18:49 +08:00
check(whiteboardId, String);
check(meetingId, String);
const result = await modifyWhiteboardAccess(meetingId, whiteboardId, multiUser);
return result;
}