fix(user): The user changes the space and modifies the role, the role information is synchronized.

This commit is contained in:
Timebomb2018
2026-02-27 12:08:18 +08:00
parent 2d731c6412
commit bbaa39c569

View File

@@ -100,7 +100,7 @@ def get_current_user_info(
result_schema.current_workspace_name = current_workspace.name
for ws in result.workspaces:
if ws.workspace_id == current_user.current_workspace_id:
if ws.workspace_id == current_user.current_workspace_id and ws.is_active:
result_schema.role = ws.role
break