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-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';
|
2018-01-10 06:28:48 +08:00
|
|
|
import removeUser from './methods/removeUser';
|
2017-02-06 23:56:09 +08:00
|
|
|
|
2018-02-20 22:21:51 +08:00
|
|
|
Meteor.methods(mapToAcl(['methods.setEmojiStatus', 'methods.assignPresenter', 'methods.changeRole',
|
2018-01-10 06:28:48 +08:00
|
|
|
'methods.removeUser'], {
|
2018-02-20 22:21:51 +08:00
|
|
|
setEmojiStatus,
|
|
|
|
assignPresenter,
|
|
|
|
changeRole,
|
|
|
|
removeUser,
|
|
|
|
}));
|
2017-06-01 01:54:43 +08:00
|
|
|
|
2018-02-20 22:21:51 +08:00
|
|
|
Meteor.methods({ validateAuthToken });
|