2017-02-06 23:56:09 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
import kickUser from './methods/kickUser';
|
2017-02-10 20:24:14 +08:00
|
|
|
import listenOnlyToggle from './methods/listenOnlyToggle';
|
2017-02-07 21:08:06 +08:00
|
|
|
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-02-06 23:56:09 +08:00
|
|
|
|
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']
|
2017-06-01 21:12:11 +08:00
|
|
|
,{
|
2017-02-06 23:56:09 +08:00
|
|
|
kickUser,
|
2017-02-10 20:24:14 +08:00
|
|
|
listenOnlyToggle,
|
2017-02-07 21:08:06 +08:00
|
|
|
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});
|