bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/service.js

19 lines
399 B
JavaScript
Raw Normal View History

import AuthSingleton from '/imports/ui/services/auth/index.js';
import Users from '/imports/api/users';
let isUserPresenter = () => {
2016-11-15 10:48:56 +08:00
// check if user is a presenter
let isPresenter = Users.findOne({
userId: AuthSingleton.getCredentials().requesterUserId,
}).user.presenter;
return {
2016-11-15 10:48:56 +08:00
isUserPresenter: isPresenter,
};
};
export default {
isUserPresenter,
};