Skip to content
Snippets Groups Projects
Commit 4f14086f authored by Anton Georgiev's avatar Anton Georgiev
Browse files

set default value for isPresenter in case user removed

parent 2d6565d4
No related branches found
No related tags found
No related merge requests found
......@@ -25,9 +25,9 @@ const takePresenterRole = () => makeCall('assignPresenter', Auth.userID);
export default {
amIPresenter: () => Users.findOne({ userId: Auth.userID },
{ fields: { presenter: 1 } }).presenter,
{ fields: { presenter: 1 } }).presenter || false,
amIModerator: () => Users.findOne({ userId: Auth.userID },
{ fields: { role: 1 } }).role === ROLE_MODERATOR,
{ fields: { role: 1 } }).role === ROLE_MODERATOR || false,
meetingName: () => Meetings.findOne({ meetingId: Auth.meetingID },
{ fields: { 'meetingProp.name': 1 } }).meetingProp.name,
users: () => Users.find({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment