Explorar o código

bugfix: Turns out this should now be 403 instead (#438)

Simon Dahlbacka hai 1 ano
pai
achega
7cc07158ab
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      webui.dev/main.js

+ 1 - 1
webui.dev/main.js

@@ -58,7 +58,7 @@ function fetchGetDashboardComponents () {
   window.fetch(window.restBaseUrl + 'GetDashboardComponents', {
   window.fetch(window.restBaseUrl + 'GetDashboardComponents', {
     cors: 'cors'
     cors: 'cors'
   }).then(res => {
   }).then(res => {
-    if (!res.ok && res.status === 401) {
+    if (!res.ok && res.status === 403) {
       window.location.href = window.settings.AuthLoginUrl
       window.location.href = window.settings.AuthLoginUrl
     }
     }
     return res.json()
     return res.json()