FIX [render] use isAbsent method to render user as absent or not + place homepage msg above searchbar

This commit is contained in:
2023-01-27 11:10:17 +01:00
parent f76c031ff3
commit bb7d072cc8
5 changed files with 8 additions and 8 deletions

View File

@@ -304,7 +304,7 @@ class User implements UserInterface
public function isAbsent(): bool
{
return null !== $this->getAbsenceStart() ? true : false;
return (null !== $this->getAbsenceStart() && $this->getAbsenceStart() <= new DateTimeImmutable('now')) ? true : false;
}
/**