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"); } }