bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/users/server/methods.js
2017-06-19 10:13:35 -03:00

21 lines
795 B
JavaScript

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});