From 0f066ebf99edc1b19fd44a6ba210ed2f945690b9 Mon Sep 17 00:00:00 2001 From: Daulet Amirkhanov Date: Wed, 3 Sep 2025 13:55:45 +0100 Subject: [PATCH] fix: remove unnecessary authentication check for default user --- cognee/modules/users/methods/get_authenticated_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cognee/modules/users/methods/get_authenticated_user.py b/cognee/modules/users/methods/get_authenticated_user.py index ff66be51f..4c7e8f3e8 100644 --- a/cognee/modules/users/methods/get_authenticated_user.py +++ b/cognee/modules/users/methods/get_authenticated_user.py @@ -34,7 +34,7 @@ async def get_authenticated_user( Always returns a User object for consistent typing. """ - if user is None and not REQUIRE_AUTHENTICATION: + if user is None: # When authentication is optional and user is None, use default user try: user = await get_default_user()