Skip to content

Commit

Permalink
pref:研发商店组件内置打包流水线都归属到统一的平台项目下 #10475
Browse files Browse the repository at this point in the history
  • Loading branch information
yjieliang committed Dec 16, 2024
1 parent 53fc38b commit ede2ee6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ interface ServiceStoreResource {
userId: String
): Result<Boolean>

@Operation(summary = "判断项目是否是研发商店公共项目")
@GET
@Path("projects/{projectCode}/validate")
fun isPublicProject(
@Parameter(description = "标识", required = true)
@PathParam("projectCode")
projectCode: String
): Result<Boolean>

@Operation(summary = "校验流水线用户访问插件信息权限")
@GET
@Path("/codes/{storeCode}/pipeline/user/validate")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ class ServiceStoreResourceImpl @Autowired constructor(
)
}

override fun isPublicProject(projectCode: String): Result<Boolean> {
return Result(
projectCode == storeInnerPipelineConfig.innerPipelineProject
)
}

override fun validatePipelineUserAtomPermission(
storeCode: String,
storeType: StoreTypeEnum,
Expand Down

0 comments on commit ede2ee6

Please sign in to comment.