Commit bc9b5646 authored by Curtis Adam's avatar Curtis Adam

Add one extra day to the registration period when checking if a user can join a bonus

parent 0eedb1be
......@@ -21,7 +21,7 @@ export let Bonus = class Bonus {
return false;
}
if (Roles.userIsInRole(Meteor.userId(), ['admin', 'editor', 'lecturer', 'university', 'pro'])) {
return !this.isInBonus(cardset._id) && cardset.registrationPeriod > new Date();
return !this.isInBonus(cardset._id) && moment(cardset.registrationPeriod).add(1, 'days') > new Date();
} else {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment