This commit is contained in:
2026-05-07 21:34:43 +03:00
parent 48e32bfdcb
commit a5161cb6b4
3 changed files with 31 additions and 33 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ readonly class AuthServiceLunar implements AuthService
} elseif (request()->segment(1) !== "lucent") {
return config("lucent.systemUserId");
}
return Filament::auth()->user()->id;
return Filament::auth()->user()->id ?? null;
}
public function getCurrentUser(): User
{