2016-11-08 02:19:00 +08:00
|
|
|
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({
|
2016-11-08 02:19:00 +08:00
|
|
|
userId: AuthSingleton.getCredentials().requesterUserId,
|
|
|
|
}).user.presenter;
|
|
|
|
|
|
|
|
return {
|
2016-11-15 10:48:56 +08:00
|
|
|
isUserPresenter: isPresenter,
|
2016-11-08 02:19:00 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default {
|
|
|
|
isUserPresenter,
|
|
|
|
};
|