2017-03-24 23:34:45 +08:00
|
|
|
import React from 'react';
|
2017-04-29 00:15:29 +08:00
|
|
|
import Auth from '/imports/ui/services/auth/index.js';
|
2016-12-21 02:06:01 +08:00
|
|
|
import Users from '/imports/api/users';
|
|
|
|
|
2017-06-03 03:25:02 +08:00
|
|
|
const isUserPresenter = () => Users.findOne({
|
2017-04-29 00:15:29 +08:00
|
|
|
userId: Auth.userID,
|
|
|
|
}).user.presenter;
|
2017-03-17 07:30:46 +08:00
|
|
|
|
2016-12-21 02:06:01 +08:00
|
|
|
export default {
|
|
|
|
isUserPresenter,
|
|
|
|
};
|