Fix: disable hover event of conformanceCheckFeedback if validationErrors is empty
This commit is contained in:
1 parent
013c003128
commit
2c65b8c9c6
3 files changed
+26
-9
No files matched your search
@@ -132,20 +132,16 @@ Meteor.methods({
|
||||
|
||||
// Check if the user actually exists, and if not, stop here
|
||||
var currentUser = Meteor.users.findOne({"emails.address": emailAddress});
|
||||
console.log(currentUser);
|
||||
if (!currentUser) {
|
||||
return;
|
||||
}
|
||||
console.log(currentUser);
|
||||
|
||||
var lastLoginDate = currentUser.lastLoginDate;
|
||||
if (!lastLoginDate) {
|
||||
return false;
|
||||
}
|
||||
|
||||
console.log(lastLoginDate);
|
||||
lastLoginDate.setDate(lastLoginDate.getDate() + inactivityPeriodDays);
|
||||
console.log(lastLoginDate);
|
||||
|
||||
if (lastLoginDate <= new Date()) {
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user