From db58c384f154f427c82025149b4f83b615c59491 Mon Sep 17 00:00:00 2001 From: king Date: Tue, 26 May 2026 22:04:29 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95:=20?= =?UTF-8?q?=EC=9D=BC=EB=B0=98=20=EC=82=AC=EC=9A=A9=EC=9E=90=20=EC=8A=B9?= =?UTF-8?q?=EC=9D=B8=20=EC=B2=B4=ED=81=AC=20=EB=8B=A8=EA=B3=84=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=96=B4=EB=93=9C=EB=AF=BC=20=EC=98=88=EC=99=B8=20?= =?UTF-8?q?=EB=88=84=EB=9D=BD=20=EB=B3=B4=EC=99=84=20=EB=B0=8F=20=EC=A4=91?= =?UTF-8?q?=EC=B2=A9=20=EC=8A=AC=EB=9E=98=EC=8B=9C=20=EB=9D=BC=EC=9A=B0?= =?UTF-8?q?=ED=8C=85=20=EB=B0=A9=EC=96=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/auth.py | 2 +- static/js/app.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/auth.py b/app/auth.py index 3b1913c..5f08419 100644 --- a/app/auth.py +++ b/app/auth.py @@ -103,7 +103,7 @@ def get_current_user(request: Request, db: Session = Depends(get_db)): ) user = _provision_user(db, email, name) - if not user.is_approved and not user.is_admin: + if not user.is_approved and not user.is_admin and email.lower() not in ADMIN_EMAILS: raise HTTPException( status_code=status.HTTP_403_FORBIDDEN, detail="User is not approved by administrator", diff --git a/static/js/app.js b/static/js/app.js index 2bd7705..76823cb 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -1,6 +1,9 @@ document.addEventListener('DOMContentLoaded', () => { const APP_BASE_PATH = (window.APP_BASE_PATH || '').replace(/\/$/, ''); - const appUrl = (path) => `${APP_BASE_PATH}${path.startsWith('/') ? path : `/${path}`}`; + const appUrl = (path) => { + const rawUrl = `${APP_BASE_PATH}${path.startsWith('/') ? path : `/${path}`}`; + return rawUrl.replace(/\/+/g, '/'); + }; // --- Elements --- // loginScreen / user-name 표시는 더 이상 존재하지 않음.