bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/methods.js
Oswaldo Acauan 2f741df97b Impl user-session based connections on server. Fix #5150
Implement a connectionId for each user, each time a user try to validate we change their connectionId
and end all other connections of that user.
2018-02-20 11:26:36 -03:00

18 lines
595 B
JavaScript

import { Meteor } from 'meteor/meteor';
import mapToAcl from '/imports/startup/mapToAcl';
import validateAuthToken from './methods/validateAuthToken';
import setEmojiStatus from './methods/setEmojiStatus';
import assignPresenter from './methods/assignPresenter';
import changeRole from './methods/changeRole';
import removeUser from './methods/removeUser';
Meteor.methods(mapToAcl(['methods.setEmojiStatus', 'methods.assignPresenter', 'methods.changeRole',
'methods.removeUser'], {
setEmojiStatus,
assignPresenter,
changeRole,
removeUser,
}));
Meteor.methods({ validateAuthToken });