From 8959798cd3cec0d75a0f17ac63e05f8b10c3b06b Mon Sep 17 00:00:00 2001 From: lexx Date: Mon, 15 Jan 2024 14:43:18 +0200 Subject: [PATCH] auth service --- src/Account/AuthService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Account/AuthService.php b/src/Account/AuthService.php index 1af0b8d..7453044 100644 --- a/src/Account/AuthService.php +++ b/src/Account/AuthService.php @@ -28,7 +28,7 @@ readonly class AuthService if (app()->runningInConsole()) { return config("lucent.systemUserId"); } else { - return $this->session->get("user.id"); + return $this->session->get("user.id") || config("lucent.systemUserId"); } }