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

12 lines
452 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-08-01 23:00:07 +08:00
2017-08-05 04:05:18 +08:00
Meteor.methods(mapToAcl(['methods.listenOnlyToggle', 'methods.toggleSelfVoice', 'methods.toggleVoice',
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-08-01 23:00:07 +08:00
}));