2017-06-19 21:13:35 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
2017-07-13 21:15:42 +08:00
|
|
|
import mapToAcl from '/imports/startup/mapToAcl';
|
2017-06-19 21:13:35 +08:00
|
|
|
import userLogout from './methods/userLogout';
|
|
|
|
import validateAuthToken from './methods/validateAuthToken';
|
2017-07-13 21:15:42 +08:00
|
|
|
import setEmojiStatus from './methods/setEmojiStatus';
|
2017-07-17 20:49:11 +08:00
|
|
|
import assignPresenter from './methods/assignPresenter';
|
2017-08-19 02:23:05 +08:00
|
|
|
import changeRole from './methods/changeRole';
|
2017-10-03 23:25:56 +08:00
|
|
|
import kickUser from './methods/kickUser';
|
2017-06-19 21:13:35 +08:00
|
|
|
|
2017-08-19 02:23:05 +08:00
|
|
|
Meteor.methods(mapToAcl(['methods.userLogout', 'methods.setEmojiStatus', 'methods.assignPresenter', 'methods.changeRole',
|
2017-10-03 23:25:56 +08:00
|
|
|
'methods.kickUser'], {
|
|
|
|
userLogout,
|
|
|
|
setEmojiStatus,
|
|
|
|
assignPresenter,
|
|
|
|
changeRole,
|
|
|
|
kickUser,
|
|
|
|
}));
|
2017-06-19 21:13:35 +08:00
|
|
|
|
2017-06-28 06:14:53 +08:00
|
|
|
Meteor.methods({ validateAuthToken2x: validateAuthToken });
|