From 7cc07158ab798a3baf4afd93476cf469b9dce10f Mon Sep 17 00:00:00 2001 From: Simon Dahlbacka Date: Mon, 14 Oct 2024 16:53:23 +0300 Subject: [PATCH] bugfix: Turns out this should now be 403 instead (#438) --- webui.dev/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.dev/main.js b/webui.dev/main.js index f05bb36..2e0df2e 100644 --- a/webui.dev/main.js +++ b/webui.dev/main.js @@ -58,7 +58,7 @@ function fetchGetDashboardComponents () { window.fetch(window.restBaseUrl + 'GetDashboardComponents', { cors: 'cors' }).then(res => { - if (!res.ok && res.status === 401) { + if (!res.ok && res.status === 403) { window.location.href = window.settings.AuthLoginUrl } return res.json()