bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/server/handlers/guestPolicyChanged.js

13 lines
334 B
JavaScript
Raw Normal View History

2020-02-04 04:41:12 +08:00
import { check } from 'meteor/check';
import setGuestPolicy from '../modifiers/setGuestPolicy';
2020-02-04 04:41:12 +08:00
export default async function handleGuestPolicyChanged({ body }, meetingId) {
2020-02-04 04:41:12 +08:00
const { policy } = body;
check(meetingId, String);
check(policy, String);
const result = await setGuestPolicy(meetingId, policy);
return result;
2020-02-04 04:41:12 +08:00
}