Skip to content

Commit

Permalink
k
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Dec 2, 2024
1 parent bdfa29d commit d023056
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/danswer/server/manage/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d023056

Please sign in to comment.