Skip to content

feat(dashboard): align the permission picker with custom navigation - #1941

Merged
jubaoliang merged 1 commit into
developfrom
feat/permission-picker-follows-nav
Oct 12, 2026
Merged

jubaoliang merged 1 commit into
developfrom
feat/permission-picker-follows-nav

Conversation

@jubaoliang

Copy link
Copy Markdown
Collaborator

Summary

  • 用户和角色的权限勾选按当前操作者的自定义导航排列:分组名称、分组顺序和条目顺序一致;一对多的导航项(工作台、用户、模型等)下面挂原来的 tab 权限。
  • 对话保持始终可用。专家、自动化、Token 统计可以勾选;没勾选时侧栏和对应页面会隐藏。对话里仍可使用共享专家。
  • 新建用户默认带上这三项。已经存在的非管理员账号和角色会在下次启动时补上一次,之后取消勾选不会被加回去。「资源使用策略」和上面的权限区拉开了距离。

已知边界

勾选目前管的是侧栏和页面入口。创建专家、定时任务、用量查询的 HTTP 接口还没有按这三项拦截。

Test plan

  • 用改过导航分组和顺序的账号打开用户编辑、角色编辑,确认权限列表跟侧栏一致,隐藏的导航项仍能勾到
  • 确认「对话」不能取消;专家、自动化、Token 统计可以保存,刷新后还在
  • 取消专家后,该用户侧栏没有专家,打开 /experts 被拦住,对话里仍能用共享专家
  • 确认「资源使用策略」和上面的权限区有分隔
  • 用已有数据库启动一次,确认原有非管理员自动获得这三项,再取消后重启不会被加回

Made with Cursor

Keep chat always available, and let experts, automation, and token usage be granted in the same groups and order as the operator's sidebar.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jubaoliang
jubaoliang merged commit aaa0dbd into develop Oct 12, 2026
3 checks passed
@jubaoliang
jubaoliang deleted the feat/permission-picker-follows-nav branch October 12, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants