From 3c17fc28798bb2946ff5df66ed294851f5182b42 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 7 Jun 2021 18:39:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9D=83=E9=99=90=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=9D=83=E9=99=90=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/api/controller/ApiModuleController.java | 4 ++-- .../api/controller/ApiTestEnvironmentController.java | 2 +- .../performance/controller/PerformanceTestController.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/controller/ApiModuleController.java b/backend/src/main/java/io/metersphere/api/controller/ApiModuleController.java index 176249a168..e3e7deb4c5 100644 --- a/backend/src/main/java/io/metersphere/api/controller/ApiModuleController.java +++ b/backend/src/main/java/io/metersphere/api/controller/ApiModuleController.java @@ -28,7 +28,7 @@ public class ApiModuleController { @GetMapping("/list/{projectId}/{protocol}") public List getNodeByProjectId(@PathVariable String projectId, @PathVariable String protocol) { - checkPermissionService.checkProjectOwner(projectId); +// checkPermissionService.checkProjectOwner(projectId); String userId = SessionUtils.getUserId(); ApiDefinitionDefaultApiTypeUtil.addUserSelectApiType(userId, protocol); return apiModuleService.getNodeTreeByProjectId(projectId, protocol); @@ -36,7 +36,7 @@ public class ApiModuleController { @GetMapping("/getModuleByName/{projectId}/{protocol}") public ApiModule getModuleByName(@PathVariable String projectId, @PathVariable String protocol) { - checkPermissionService.checkProjectOwner(projectId); +// checkPermissionService.checkProjectOwner(projectId); return apiModuleService.getModuleByName(projectId, protocol); } diff --git a/backend/src/main/java/io/metersphere/api/controller/ApiTestEnvironmentController.java b/backend/src/main/java/io/metersphere/api/controller/ApiTestEnvironmentController.java index c1d9a7284c..72ae0700dc 100644 --- a/backend/src/main/java/io/metersphere/api/controller/ApiTestEnvironmentController.java +++ b/backend/src/main/java/io/metersphere/api/controller/ApiTestEnvironmentController.java @@ -35,7 +35,7 @@ public class ApiTestEnvironmentController { @GetMapping("/list/{projectId}") public List list(@PathVariable String projectId) { - checkPermissionService.checkProjectOwner(projectId); +// checkPermissionService.checkProjectOwner(projectId); return apiTestEnvironmentService.list(projectId); } diff --git a/backend/src/main/java/io/metersphere/performance/controller/PerformanceTestController.java b/backend/src/main/java/io/metersphere/performance/controller/PerformanceTestController.java index be533b4daa..7b957efb7f 100644 --- a/backend/src/main/java/io/metersphere/performance/controller/PerformanceTestController.java +++ b/backend/src/main/java/io/metersphere/performance/controller/PerformanceTestController.java @@ -130,7 +130,7 @@ public class PerformanceTestController { public Pager> getProjectFiles(@PathVariable String projectId, @PathVariable String loadType, @PathVariable int goPage, @PathVariable int pageSize, @RequestBody QueryProjectFileRequest request) { - checkPermissionService.checkProjectOwner(projectId); +// checkPermissionService.checkProjectOwner(projectId); Page page = PageHelper.startPage(goPage, pageSize, true); return PageUtils.setPageInfo(page, performanceTestService.getProjectFiles(projectId, loadType, request)); }