bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/users/server/handlers/guestApproved.js
2017-07-14 11:18:07 -03:00

15 lines
442 B
JavaScript

import { check } from 'meteor/check';
import setApprovedStatus from '../modifiers/setApprovedStatus';
export default function handleGuestsWaitingForApproval({ header, body }, meetingId) {
const { userId } = header;
const { approved, approvedBy } = body;
check(userId, String);
check(meetingId, String);
check(approved, Boolean);
check(approvedBy, String);
return setApprovedStatus(meetingId, userId, approved, approvedBy);
}