diff --git a/routes/reslevis.py b/routes/reslevis.py index 5786769..fe398ff 100644 --- a/routes/reslevis.py +++ b/routes/reslevis.py @@ -624,6 +624,7 @@ def getGuiConfigs(): "/getUserPreferences", response_model=UserPreferencesItem, tags=["Reslevis"], + dependencies=[Depends(get_current_user)], ) def getUserPreferences(current_user: dict = Depends(get_current_user)): uid = _uid_from_claims(current_user) @@ -634,6 +635,7 @@ def getUserPreferences(current_user: dict = Depends(get_current_user)): "/updateUserPreferences", response_model=UserPreferencesItem, tags=["Reslevis"], + dependencies=[Depends(get_current_user)], ) def updateUserPreferences( item: UserPreferencesUpdateItem,