Hide arrival hint if signup does not require arrival

This commit is contained in:
Igor Scheller 2023-09-02 18:26:14 +02:00
parent f3ec62e121
commit 9a9ffcfdaf
1 changed files with 1 additions and 1 deletions

View File

@ -936,7 +936,7 @@ function render_user_freeloader_hint()
*/ */
function render_user_arrived_hint() function render_user_arrived_hint()
{ {
if (!auth()->user()->state->arrived) { if (config('signup_requires_arrival') && !auth()->user()->state->arrived) {
/** @var Carbon $buildup */ /** @var Carbon $buildup */
$buildup = config('buildup_start'); $buildup = config('buildup_start');
if (!empty($buildup) && $buildup->lessThan(new Carbon())) { if (!empty($buildup) && $buildup->lessThan(new Carbon())) {