3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-04 19:35:39 +00:00

Handle /setup link colors via middleware

This commit is contained in:
snipe
2025-12-05 10:55:49 +00:00
parent c6b2017494
commit 0204414196

View File

@ -36,6 +36,13 @@ class CheckColorSettings
*/
public function handle($request, Closure $next)
{
// Set defaults in case this is accessed via the /setup screen
$nav_color = '#ffffff';
$link_dark_color = '#89c9ed';
$link_light_color = '#3c8dbc';
if ($settings = Setting::getSettings()) {
$nav_color = $settings->nav_link_color;
$link_dark_color = $settings->link_dark_color;