fix: remove unnecessary authentication check for default user

This commit is contained in:
Daulet Amirkhanov 2025-09-03 13:55:45 +01:00
parent ea0edc7056
commit 0f066ebf99

View file

@ -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()