Skip to content

Commit

Permalink
issue: 修复sample鉴权下查project全表的问题 #10941
Browse files Browse the repository at this point in the history
  • Loading branch information
stubenhuang committed Sep 10, 2024
1 parent 27a01a5 commit 2aa3aff
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ class ProjectPermissionServiceImpl @Autowired constructor(
) : ProjectPermissionService {

override fun verifyUserProjectPermission(accessToken: String?, projectCode: String, userId: String): Boolean {
val projectCodes = authProjectApi.getUserProjects(
serviceCode = projectAuthServiceCode,
userId = userId,
supplier = supplierForPermission
)
return projectCodes.contains(projectCode)
return projectDao.countByEnglishName(dslContext, listOf(projectCode)) > 0
}

private val supplierForPermission = {
Expand Down

0 comments on commit 2aa3aff

Please sign in to comment.