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

21 lines
795 B
JavaScript
Raw Normal View History

2017-06-19 21:13:35 +08:00
import { Meteor } from 'meteor/meteor';
// import kickUser from './methods/kickUser';
import listenOnlyToggle from './methods/listenOnlyToggle';
import userLogout from './methods/userLogout';
import validateAuthToken from './methods/validateAuthToken';
import mapToAcl from '/imports/startup/mapToAcl';
Meteor.methods(mapToAcl(['methods.kickUser', 'methods.listenOnlyToggle', 'methods.userLogout',
'methods.assignPresenter', 'methods.setEmojiStatus', 'methods.muteUser', 'methods.unmuteUser',
], {
// kickUser,
// listenOnlyToggle,
// userLogout,
// assignPresenter,
// setEmojiStatus,
// muteUser: (...args) => muteToggle(...args, true),
// unmuteUser: (...args) => muteToggle(...args, false),
}));
Meteor.methods({ validateAuthToken2x: validateAuthToken});