mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
FIX [render] use isAbsent method to render user as absent or not + place homepage msg above searchbar
This commit is contained in:
@@ -71,7 +71,7 @@ class UserRender implements ChillEntityRenderInterface
|
||||
|
||||
$current_date = new DateTimeImmutable();
|
||||
|
||||
if (null !== $entity->getAbsenceStart() && $entity->getAbsenceStart() < $current_date && $opts['main_scope']) {
|
||||
if ($entity->isAbsent() && $opts['main_scope']) {
|
||||
$str .= ' (' . $this->translator->trans('absence.Absent') . ')';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user