refac
This commit is contained in:
@@ -508,7 +508,7 @@ async def update_user_settings_by_session_user(
|
||||
detail=ERROR_MESSAGES.ACCESS_PROHIBITED,
|
||||
)
|
||||
|
||||
updated_user_settings = form_data.model_dump()
|
||||
updated_user_settings = form_data.model_dump(exclude_unset=True)
|
||||
ui_settings = updated_user_settings.get('ui')
|
||||
if (
|
||||
user.role != 'admin'
|
||||
|
||||
Reference in New Issue
Block a user