Skip to content

Commit

Permalink
feat: 调整获取分析任务列表接口权限为项目成员可访问 #2904
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlkl authored Jan 7, 2025
1 parent 1242a66 commit c4fbfad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class ScanTaskServiceImpl(
if (scanTaskQuery.projectId == null) {
permissionCheckHandler.checkPrincipal(SecurityUtils.getUserId(), PrincipalType.ADMIN)
} else {
permissionCheckHandler.checkProjectPermission(scanTaskQuery.projectId!!, PermissionAction.MANAGE)
permissionCheckHandler.checkProjectPermission(scanTaskQuery.projectId!!, PermissionAction.READ)
}
val taskPage = scanTaskDao.find(scanTaskQuery, pageLimit)
val records = taskPage.records.map { Converter.convert(it) }
Expand Down

0 comments on commit c4fbfad

Please sign in to comment.