docs: 更新任务状态 - 完成权限策略实现

This commit is contained in:
2026-03-11 10:09:00 +08:00
parent 386fe42f76
commit 73d039bcd6
+46 -46
View File
@@ -328,52 +328,52 @@
- [x] 18.4.3 测试权限检查(hasPermissionTo、can
### 19. 权限策略实现
- [ ] 19.1 DocumentPolicy(已部分实现,需完善)
- [ ] 19.1.1 在 viewAny 中添加权限检查(document.viewAny
- [ ] 19.1.2 在 view 中添加权限检查(document.view
- [ ] 19.1.3 在 create 中添加权限检查(document.create
- [ ] 19.1.4 在 update 中添加权限检查(document.update
- [ ] 19.1.5 在 delete 中添加权限检查(document.delete
- [ ] 19.1.6 在 download 中添加权限检查(document.download
- [ ] 19.1.7 保留现有的分组访问控制逻辑
- [ ] 19.2 SystemSettingPolicy
- [ ] 19.2.1 实现 viewAnysystem-setting.viewAny
- [ ] 19.2.2 实现 viewsystem-setting.view
- [ ] 19.2.3 实现 updatesystem-setting.update
- [ ] 19.3 ActivityLogPolicy
- [ ] 19.3.1 实现 viewAnyactivity-log.viewAny
- [ ] 19.3.2 实现 viewactivity-log.view
- [ ] 19.3.3 实现 exportactivity-log.export
- [ ] 19.4 TerminalPolicy(已部分实现,需完善)
- [ ] 19.4.1 在所有方法中添加权限检查
- [ ] 19.4.2 实现 sync 权限检查(terminal.sync
- [ ] 19.4.3 保留现有的管理员检查作为后备
- [ ] 19.5 SopTemplatePolicy(已部分实现,需完善)
- [ ] 19.5.1 在所有方法中添加权限检查
- [ ] 19.5.2 实现 publish 权限检查(sop-template.publish
- [ ] 19.5.3 实现 archive 权限检查(sop-template.archive
- [ ] 19.5.4 保留现有的状态检查逻辑
- [ ] 19.6 GroupPolicy
- [ ] 19.6.1 实现 viewAnygroup.viewAny
- [ ] 19.6.2 实现 viewgroup.view
- [ ] 19.6.3 实现 creategroup.create
- [ ] 19.6.4 实现 updategroup.update
- [ ] 19.6.5 实现 deletegroup.delete,需检查关联文档)
- [ ] 19.7 UserPolicy
- [ ] 19.7.1 实现 viewAnyuser.viewAny
- [ ] 19.7.2 实现 viewuser.view
- [ ] 19.7.3 实现 createuser.create
- [ ] 19.7.4 实现 updateuser.update
- [ ] 19.7.5 实现 deleteuser.delete,不能删除自己)
- [ ] 19.8 RolePolicy
- [ ] 19.8.1 实现 viewAnyrole.viewAny
- [ ] 19.8.2 实现 viewrole.view
- [ ] 19.8.3 实现 createrole.create
- [ ] 19.8.4 实现 updaterole.update
- [ ] 19.8.5 实现 deleterole.deletesuper-admin 保护)
- [ ] 19.9 策略注册
- [ ] 19.9.1 在 AppServiceProvider 中注册所有策略
- [ ] 19.9.2 配置策略自动发现
- [x] 19.1 DocumentPolicy(已部分实现,需完善)
- [x] 19.1.1 在 viewAny 中添加权限检查(document.view
- [x] 19.1.2 在 view 中添加权限检查(document.view
- [x] 19.1.3 在 create 中添加权限检查(document.create
- [x] 19.1.4 在 update 中添加权限检查(document.update
- [x] 19.1.5 在 delete 中添加权限检查(document.delete
- [x] 19.1.6 在 download 中添加权限检查(document.download
- [x] 19.1.7 保留现有的分组访问控制逻辑
- [x] 19.2 SystemSettingPolicy
- [x] 19.2.1 实现 viewAnysystem-setting.view
- [x] 19.2.2 实现 viewsystem-setting.view
- [x] 19.2.3 实现 updatesystem-setting.update
- [x] 19.3 ActivityLogPolicy
- [x] 19.3.1 实现 viewAnyactivity-log.view
- [x] 19.3.2 实现 viewactivity-log.view
- [x] 19.3.3 实现 exportactivity-log.export
- [x] 19.4 TerminalPolicy(已部分实现,需完善)
- [x] 19.4.1 在所有方法中添加权限检查
- [x] 19.4.2 实现 sync 权限检查(terminal.sync
- [x] 19.4.3 保留现有的管理员检查作为后备
- [x] 19.5 SopTemplatePolicy(已部分实现,需完善)
- [x] 19.5.1 在所有方法中添加权限检查
- [x] 19.5.2 实现 publish 权限检查(sop-template.publish
- [x] 19.5.3 实现 archive 权限检查(sop-template.archive
- [x] 19.5.4 保留现有的状态检查逻辑
- [x] 19.6 GroupPolicy
- [x] 19.6.1 实现 viewAnygroup.view
- [x] 19.6.2 实现 viewgroup.view
- [x] 19.6.3 实现 creategroup.create
- [x] 19.6.4 实现 updategroup.update
- [x] 19.6.5 实现 deletegroup.delete,需检查关联文档)
- [x] 19.7 UserPolicy
- [x] 19.7.1 实现 viewAnyuser.view
- [x] 19.7.2 实现 viewuser.view
- [x] 19.7.3 实现 createuser.create
- [x] 19.7.4 实现 updateuser.update
- [x] 19.7.5 实现 deleteuser.delete,不能删除自己)
- [x] 19.8 RolePolicy
- [x] 19.8.1 实现 viewAnyrole.viewAny
- [x] 19.8.2 实现 viewrole.view
- [x] 19.8.3 实现 createrole.create
- [x] 19.8.4 实现 updaterole.update
- [x] 19.8.5 实现 deleterole.deletesuper-admin 保护)
- [x] 19.9 策略注册
- [x] 19.9.1 在 AppServiceProvider 中注册所有策略
- [x] 19.9.2 配置策略自动发现
### 20. Filament 资源权限集成
- [ ] 20.1 更新所有 Resource 的权限检查