From 2c0a8afd5fafbfaa1d6e757a1483f6e781b699db Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 30 Jun 2025 15:05:53 +0800 Subject: [PATCH] fix: add extends role (#3430) --- apps/common/auth/handle/impl/user_token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/auth/handle/impl/user_token.py b/apps/common/auth/handle/impl/user_token.py index 3eb934301..6a65e46e8 100644 --- a/apps/common/auth/handle/impl/user_token.py +++ b/apps/common/auth/handle/impl/user_token.py @@ -233,7 +233,7 @@ def reset_workspace_role(role_id, workspace_id, role_dict): return f"{role_id}:/WORKSPACE/{workspace_id}" else: r = role_dict.get(role_id) - if r is not None: + if r is None: return '' role_type = role_dict.get(role_id).type if system_role == role_type: