bigbluebutton-Github/bigbluebutton-html5/imports/api/voice-users/server/methods.js

14 lines
567 B
JavaScript
Raw Normal View History

2017-08-01 23:00:07 +08:00
import { Meteor } from 'meteor/meteor';
import mapToAcl from '/imports/startup/mapToAcl';
import listenOnlyToggle from './methods/listenOnlyToggle';
2017-08-05 04:05:18 +08:00
import muteToggle from './methods/muteToggle';
2017-12-09 00:40:52 +08:00
import ejectUserFromVoice from './methods/ejectUserFromVoice';
2017-08-01 23:00:07 +08:00
2017-12-09 00:40:52 +08:00
Meteor.methods(mapToAcl(['methods.listenOnlyToggle', 'methods.toggleSelfVoice',
'methods.toggleVoice', 'methods.ejectUserFromVoice'], {
2017-08-01 23:00:07 +08:00
listenOnlyToggle,
2017-08-05 04:05:18 +08:00
toggleSelfVoice: (credentials) => { muteToggle(credentials, credentials.requesterUserId); },
toggleVoice: muteToggle,
2017-12-09 00:40:52 +08:00
ejectUserFromVoice,
2017-08-01 23:00:07 +08:00
}));