Hide system actions from the role editor #129

Merged
weichen merged 2 commits from fix/role-editor-single-project-toggle into main 2026-10-23 10:31:08 +00:00
Owner

Why

owner 反馈角色创建里全是管理员权限。服务端对受保护系统范围动作本就整批拒绝,只能按用户单独授予,角色编辑面展示只会误导。

Evidence

  • npm run build 通过;npx vitest run 717 个测试全通过
  • 过滤放在角色编辑面的调用点,buildCapabilityGroups 不变,因此账号级显式授权面板的两个系统能力组测试仍通过
  • agent-exec transport 的 diff 与 owner 验收版本一致

Impact

角色编辑面不再出现 system.* 动作;账号级显式授权界面不变。

Refs

fix/role-editor-single-project-toggle

## Why owner 反馈角色创建里全是管理员权限。服务端对受保护系统范围动作本就整批拒绝,只能按用户单独授予,角色编辑面展示只会误导。 ## Evidence - npm run build 通过;npx vitest run 717 个测试全通过 - 过滤放在角色编辑面的调用点,buildCapabilityGroups 不变,因此账号级显式授权面板的两个系统能力组测试仍通过 - agent-exec transport 的 diff 与 owner 验收版本一致 ## Impact 角色编辑面不再出现 system.* 动作;账号级显式授权界面不变。 ## Refs fix/role-editor-single-project-toggle
weichen added 1 commit 2026-10-23 10:27:50 +00:00
Hide system actions from the role editor
governance / governance (pull_request) Successful in 14s
ci / test-and-build (pull_request) Successful in 37s
dca48a1d75
Why: Owner reported that creating a role showed system admin permissions. The
server rejects protected system-scope actions for role writes anyway; they are
only configurable per account in the users panel, so showing them in the role
editor is misleading.

Evidence: npm run build passes and npx vitest run passes (717 tests); the two
account-panel tests that assert system capability groups keep passing because the
filter lives at the role editor call site, not in buildCapabilityGroups. The
agent-exec transport diff matches the owner-accepted change.

Impact: the role editor builds capability groups without system.* actions; the
per-account explicit grant surface is unchanged.

Refs: fix/role-editor-single-project-toggle
weichen added 1 commit 2026-10-23 10:29:30 +00:00
Merge remote-tracking branch 'origin/main' into fix/role-editor-single-project-toggle
governance / governance (pull_request) Successful in 15s
ci / test-and-build (pull_request) Successful in 1m2s
551697d67d
weichen merged commit 9cc71135c5 into main 2026-10-23 10:31:08 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Frontend#129