feat(admin): 添加分组级渠道管理员权限#2218
Open
lantary-w wants to merge 3 commits intoWei-Shaw:mainfrom
Open
Conversation
- 改为通过 allowed_groups 授权渠道管理员可管理分组 - 允许渠道管理员管理授权分组账号和未分配账号 - 开放账号编辑所需的分组/代理只读接口 - 开放 usage/dashboard 只读统计接口 - 更新前端路由、侧边栏、用户和账号管理界面 - 补充渠道管理员权限、账号范围和使用记录相关测试
# Conflicts: # frontend/src/components/common/GroupSelector.vue
Contributor
|
All contributors have signed the CLA. ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
需求说明
这个需求不是为了商用,而是小团队使用时出现的一个需求
具体需求如下:
需要一个平台可以让大家接入自己订阅的账号,统一成固定的平台访问(实际上就是做账号调度均衡和简化的多平台格式统一)
但是使用过程中发现,所有人要添加账号的话均需要登录 管理员账号,并且均可以管理所有其他人的账号,一来用的人一旦多了就会很乱。再者,这样去分发管理员账号不太安全,不同人可能会串账号。
因此设计了一个新的用户,
渠道管理员, 这个渠道管理员的作用就是 管理员给他分配一个/几个 分组这样可以直接通过登录渠道管理员进行账号的添加/修改/删除,并且其也无法修改未授权的分组账号具体修改内容
channel_admin用户allowed_groups为渠道管理员分配可管理分组效果展示
渠道管理员可访问的内容:

管理员在添加账户时可以创建渠道管理员/管理员 ;注意管理员账户没有设置前端删除选项,若创建需要在数据库中自行删除
Test plan