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

24 lines
883 B
JavaScript
Raw Normal View History

import { Meteor } from 'meteor/meteor';
import kickUser from './methods/kickUser';
2017-02-10 20:24:14 +08:00
import listenOnlyToggle from './methods/listenOnlyToggle';
import userLogout from './methods/userLogout';
2017-02-22 20:56:32 +08:00
import assignPresenter from './methods/assignPresenter';
2017-02-22 21:11:47 +08:00
import muteToggle from './methods/muteToggle';
import setEmojiStatus from './methods/setEmojiStatus';
2017-03-11 02:33:46 +08:00
import validateAuthToken from './methods/validateAuthToken';
2017-06-01 01:54:43 +08:00
import mapToAcl from '/imports/startup/mapToAcl';
2017-06-03 04:37:22 +08:00
Meteor.methods(mapToAcl(['methods.kickUser','methods.listenOnlyToggle','methods.userLogout',
'methods.assignPresenter','methods.setEmojiStatus','methods.muteUser','methods.unmuteUser']
,{
kickUser,
2017-02-10 20:24:14 +08:00
listenOnlyToggle,
userLogout,
2017-02-22 21:11:47 +08:00
assignPresenter,
setEmojiStatus,
2017-06-01 01:54:43 +08:00
muteUser : (...args) => muteToggle(...args, true),
unmuteUser : (...args) => muteToggle(...args, false),
}));
Meteor.methods({validateAuthToken});