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: