From 9cd39c36553401a0202165522107ac464d625aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=87=E8=96=87=E5=AE=89?= Date: Sun, 15 Feb 2026 14:18:58 +0800 Subject: [PATCH] 1 --- backend/api/routes/accounts.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/api/routes/accounts.py b/backend/api/routes/accounts.py index 6ccd06a..5091503 100644 --- a/backend/api/routes/accounts.py +++ b/backend/api/routes/accounts.py @@ -116,12 +116,11 @@ async def get_account_detail( async def update_account( account_id: int, data: AccountUpdate, - user: Dict[str, Any] = Depends(require_account_owner) + user: Dict[str, Any] = Depends(get_current_user) ): """更新账号基本信息""" + require_account_owner(account_id, user) try: - # TODO: Implement Account.update() in models - # For now, manually update allowed fields updates = {} if data.name is not None: updates['name'] = data.name