import { Meteor } from 'meteor/meteor'; import mapToAcl from '/imports/startup/mapToAcl'; import listenOnlyToggle from './methods/listenOnlyToggle'; import muteToggle from './methods/muteToggle'; Meteor.methods(mapToAcl(['methods.listenOnlyToggle', 'methods.toggleSelfVoice', 'methods.toggleVoice', ], { listenOnlyToggle, toggleSelfVoice: (credentials) => { muteToggle(credentials, credentials.requesterUserId); }, toggleVoice: muteToggle, }));