From d02305671a249086afd21055cf365674430e95ae Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Sun, 1 Dec 2024 17:12:54 -0800 Subject: [PATCH] k --- backend/danswer/server/manage/users.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/danswer/server/manage/users.py b/backend/danswer/server/manage/users.py index bc0908d36f2..4ebda084c5e 100644 --- a/backend/danswer/server/manage/users.py +++ b/backend/danswer/server/manage/users.py @@ -495,8 +495,7 @@ def verify_user_logged_in( # the key-value store if AUTH_TYPE == AuthType.DISABLED: store = get_kv_store() - user = fetch_no_auth_user(store) - return user + return fetch_no_auth_user(store) raise BasicAuthenticationError(detail="User Not Authenticated") if user.oidc_expiry and user.oidc_expiry < datetime.now(timezone.utc):