19 lines
381 B
JavaScript
Executable File
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,
|
|
};
|