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 표시는 더 이상 존재하지 않음.