381c5cb15c
Modified the previous implementation of the whiteboard individual access to remove multiple Collections dependency on this feature. Multi-user whiteboard is now an array instead of a boolean value and most of the access control can be synchronized and handled by akka-apps.
13 lines
392 B
JavaScript
13 lines
392 B
JavaScript
import { check } from 'meteor/check';
|
|
import modifyWhiteboardAccess from '../modifiers/modifyWhiteboardAccess';
|
|
|
|
export default function handleModifyWhiteboardAccess({ body }, meetingId) {
|
|
const { multiUser, whiteboardId } = body;
|
|
|
|
check(multiUser, Array);
|
|
check(whiteboardId, String);
|
|
check(meetingId, String);
|
|
|
|
return modifyWhiteboardAccess(meetingId, whiteboardId, multiUser);
|
|
}
|