Commit Graph

13 Commits

Author SHA1 Message Date
Cheng Zhou 6c2bcc59b2 调整账号注册与删除流程 2026-06-29 16:25:04 +08:00
Cheng Zhou 44d69c2d7b 清理全局角色残留并修复项目权限判断 2026-05-29 10:20:42 +08:00
Cheng Zhou 2c85742040 统一项目角色与接口权限配置 2026-05-28 10:48:33 +08:00
Cheng Zhou 3c168565ce 移除QA预设角色并收紧角色模板编辑 2026-05-26 11:32:14 +08:00
Cheng Zhou 5b97ea32ab 移除用户系统级角色,权限完全迁移至项目级管理
- 用户注册/创建不再需要选择角色,账号管理只管资料和状态
- 移除前后端所有系统级 role 字段的暴露,改用 is_admin 标识管理员
- PM(项目负责人)角色自动拥有全部项目权限且不可修改
- 系统管理员在项目中的成员身份不可被删除
- 管理界面全面美化

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 15:52:17 +08:00
Cheng Zhou 89cecce6b5 权限管理:新增医学审核项目角色
新增 MEDICAL_REVIEW 项目角色,界面显示为医学审核,并通过 Alembic 迁移扩展 user_role 枚举。

为医学审核配置独立默认权限:项目总览、参与者、风险问题、监查稽查、FAQ、共享库按医学审核职责开放,不再复制 PV 默认权限。

同步前后端类型、项目成员角色下拉、权限矩阵展示、文件分发角色兜底和用户协议文案,并补充权限矩阵回归测试。
2026-05-13 09:25:37 +08:00
Cheng Zhou 77e842637d 中文:收口权限与中心/立项配置改造 2026-05-12 10:16:52 +08:00
Cheng Zhou 74feca4467 feat: harden auth and study workflows
- replace plaintext login and unlock requests with RSA-OAEP/AES-GCM encrypted payloads

- add login challenge replay protection, production RSA key validation, and auth tests

- wire compose to environment-driven dev/prod settings without committing local secrets

- update setup-config smoke scripts and Postman docs for encrypted login

- add visit schedule migrations/tests and update study/subject setup workflows
2026-05-08 22:16:43 +08:00
Cheng Zhou f9ef5c109f 文件版本管理-初步优化 2026-01-14 11:35:37 +08:00
Cheng Zhou 6ddf9901a0 新增用户注册功能 2025-12-22 21:19:48 +08:00
Cheng Zhou 7137665410 修复前后端显示异常问题(受试者、中心、负责人、日期等) 2025-12-18 22:09:28 +08:00
Cheng Zhou 65df698570 Step 2:用户 CRUD + bcrypt + JWT 真实鉴权 + RBAC 依赖 2025-12-16 16:15:28 +08:00
Cheng Zhou 223d445a94 refactor: improve code structure and optimize key functions 2025-12-16 15:55:08 +08:00