Fixed: Mark member as corrupted if older than 100

This commit is contained in:
philipp lang 2023-05-03 22:34:32 +02:00
parent 419e8a1347
commit a41b190cc2
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}
}