summaryrefslogtreecommitdiff
path: root/includes/view/Rooms_view.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/view/Rooms_view.php')
-rw-r--r--includes/view/Rooms_view.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/view/Rooms_view.php b/includes/view/Rooms_view.php
index d883e4b2..0a2286fb 100644
--- a/includes/view/Rooms_view.php
+++ b/includes/view/Rooms_view.php
@@ -12,10 +12,10 @@ use Engelsystem\ShiftsFilterRenderer;
*/
function Room_view($room, ShiftsFilterRenderer $shiftsFilterRenderer, ShiftCalendarRenderer $shiftCalendarRenderer)
{
- global $user;
+ $user = Auth()->user();
$assignNotice = '';
- if (config('signup_requires_arrival') && !$user['Gekommen']) {
+ if (config('signup_requires_arrival') && !$user->state->arrived) {
$assignNotice = info(render_user_arrived_hint(), true);
}