From d077b4beee008948102c1821df2d955742bde99a Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 20 Aug 2026 14:04:13 +0800 Subject: [PATCH] fix: Permission verification error --- apps/common/auth/handle/impl/user_token.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/auth/handle/impl/user_token.py b/apps/common/auth/handle/impl/user_token.py index 73c73e5ecca..efb3dbce61b 100644 --- a/apps/common/auth/handle/impl/user_token.py +++ b/apps/common/auth/handle/impl/user_token.py @@ -195,7 +195,7 @@ def reset_workspace_role(role_id, workspace_id, role_dict): if system_role == role_id: return [role_id] else: - return [f"{role_id}:/w/{workspace_id}", role_id] + return [f"{role_id}:w:{workspace_id}", role_id] else: r = role_dict.get(role_id) if r is None: @@ -203,7 +203,7 @@ def reset_workspace_role(role_id, workspace_id, role_dict): role_type = role_dict.get(role_id).type if system_role == role_type: return [RoleConstants.EXTENDS_ADMIN.value.name] - return [f"EXTENDS_{role_type}:/w/{workspace_id}"] + return [f"EXTENDS_{role_type}:w:{workspace_id}"] def get_role_list(user, workspace_user_role_mapping_model, workspace_model, role_model, role_permission_mapping_model):