fix: remove unnecessary authentication check for default user
This commit is contained in:
parent
ea0edc7056
commit
0f066ebf99
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue