Fixed: Mark member as corrupted if older than 100
This commit is contained in:
parent
419e8a1347
commit
a41b190cc2
|
@ -177,6 +177,10 @@ class Member extends Data
|
|||
return false;
|
||||
}
|
||||
|
||||
if (data_get($rawData, 'geburtsDatum') && Carbon::parse(data_get($rawData, 'geburtsDatum'))->diffInYears(now()) > 100) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue