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

20 lines
683 B
JavaScript
Raw Normal View History

import { Meteor } from 'meteor/meteor';
2017-10-12 09:02:23 +08:00
import mapToAcl from '/imports/startup/mapToAcl';
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-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
Meteor.methods({ validateAuthToken, });