소스 검색

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

Simon Dahlbacka 1 년 전
부모
커밋
7cc07158ab
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      webui.dev/main.js

+ 1 - 1
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()