2017-02-06 23:56:09 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
2017-10-12 09:02:23 +08:00
|
|
|
import mapToAcl from '/imports/startup/mapToAcl';
|
2017-02-07 21:08:06 +08:00
|
|
|
import userLogout from './methods/userLogout';
|
2017-03-11 02:33:46 +08:00
|
|
|
import validateAuthToken from './methods/validateAuthToken';
|
2017-10-12 09:02:23 +08:00
|
|
|
import setEmojiStatus from './methods/setEmojiStatus';
|
|
|
|
import assignPresenter from './methods/assignPresenter';
|
|
|
|
import changeRole from './methods/changeRole';
|
|
|
|
import kickUser from './methods/kickUser';
|
2017-02-06 23:56:09 +08:00
|
|
|
|
2017-10-12 09:02:23 +08:00
|
|
|
Meteor.methods(mapToAcl(['methods.userLogout', 'methods.setEmojiStatus', 'methods.assignPresenter', 'methods.changeRole',
|
|
|
|
'methods.kickUser'], {
|
2017-06-06 00:40:36 +08:00
|
|
|
userLogout,
|
|
|
|
setEmojiStatus,
|
2017-10-12 09:02:23 +08:00
|
|
|
assignPresenter,
|
|
|
|
changeRole,
|
|
|
|
kickUser,
|
|
|
|
}));
|
2017-06-01 01:54:43 +08:00
|
|
|
|
2017-10-13 03:07:02 +08:00
|
|
|
Meteor.methods({ validateAuthToken, });
|