Fix: Removed permission verification from the user information retrieval interface.

This commit is contained in:
Liujian committed 2026-02-25 15:18:19 +08:00
1 parent 3e1d986c1c
commit 07fe83b7b5
1 file changed
-2
@@ -40,8 +40,6 @@ def get_order_service(db: Session = Depends(get_db)) -> UserWalletHistoryService
@router.get("/info", response_model=dict)
def get_user(request: Request, user_wallet: UserWalletService = Depends(get_user_wallet), user_task: UserTaskService = Depends(get_user_task_service), resource_group_service: ResourceGroupService = Depends(get_resource_group_service)):
"""Get current user information and wallet balance."""
if not UserUtils.is_normal_user(request):
return ResponseUtils.error(error_msg=error_msg.NO_PERMISSION)
user_response = UserResponse()
user_wallet_resp = UserWalletResponse()
user_wallet_resp.balance = 0.00