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

19 lines
381 B
JavaScript
Executable File

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