bigbluebutton-Github/bigbluebutton-html5/server/methods/userLogout.js
2016-04-19 17:43:31 +00:00

12 lines
407 B
JavaScript

Meteor.methods({
// meetingId: the meeting where the user is
// userId: the userid of the user logging out
// authToken: the authToken of the user
userLogout(meetingId, userId, authToken) {
if (isAllowedTo('logoutSelf', meetingId, userId, authToken)) {
Meteor.log.info(`a user is logging out from ${meetingId}:${userId}`);
return requestUserLeaving(meetingId, userId);
}
}
});