mirror of
https://github.com/kuaifan/dootask.git
synced 2026-07-31 18:35:56 +00:00
2.1 KiB
2.1 KiB
id, title, type, feature, scope, locale, aliases, related_tools, related_pages, prerequisites, negative, last_verified
| id | title | type | feature | scope | locale | aliases | related_tools | related_pages | prerequisites | negative | last_verified | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| role-permission.admin.concept | 系统管理员(admin identity) | concept | role-permission | end-user | zh |
|
|
v1.7.90 |
系统管理员(admin identity)
定义
系统管理员是 users.identity 字段数组中包含字符串 'admin' 的用户。后端通过 User::auth('admin') 和 $user->isAdmin() 判断,前端通过 store.state.userIsAdmin 判断。允许同时存在多个系统管理员。
关键属性
- identity 字段是字符串数组:可能值包括
admin/temp(临时账号) /disable(已离职) /ldap(LDAP 用户)等 - 可多人持有:任意系统管理员(含超管)都可授予或取消他人的 admin 身份
- 由超管或现任 admin 授予:通过
POST api/users/operation的setadmin/clearadmin类型设置 - 不与项目/任务权限挂钩:管理员身份只对系统级功能生效;进项目/任务仍按项目级权限判断
主要权限
- 团队管理:创建、编辑、删除、禁用、设为临时、设为离职会员
- 系统设置、LDAP、邮件、推送、举报、合规设置
- 数据导出(6 种)、应用市场管理、部门管理(增删改、任命部门负责人/管理员)
- 创建用户(
POST api/users/createuser)、批量导入
不包括
- 不能修改超级管理员的资料(被
checkSystem(1)拦截) - 不能直接看任意项目内的任务(仍需是项目成员或被任务可见用户名单包含)
- 不能解散别人是群主的群(除非是超管兜底)
怎么变成管理员
要别人授权,见 role-permission.grant-admin.howto。