From 7c3e5b7d027bf636e82e9b764c75042ee4ac9531 Mon Sep 17 00:00:00 2001 From: jianxing Date: Tue, 25 Jul 2023 18:15:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E6=9D=83?= =?UTF-8?q?=E9=99=90=EF=BC=8C=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E4=BC=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1028130 --user=陈建星 【测试跟踪】github#25831,权限问题-功能用例查看需要性能测试查看权限不然报错 https://www.tapd.cn/55049933/s/1397492 --- .../io/metersphere/controller/PerformanceTestController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/performance-test/backend/src/main/java/io/metersphere/controller/PerformanceTestController.java b/performance-test/backend/src/main/java/io/metersphere/controller/PerformanceTestController.java index 41d317dfc9..7cab19e0a5 100644 --- a/performance-test/backend/src/main/java/io/metersphere/controller/PerformanceTestController.java +++ b/performance-test/backend/src/main/java/io/metersphere/controller/PerformanceTestController.java @@ -345,7 +345,7 @@ public class PerformanceTestController { } @PostMapping("/getLoadCaseByIds") - @RequiresPermissions(PermissionConstants.PROJECT_PERFORMANCE_TEST_READ) + @RequiresPermissions(value = {PermissionConstants.PROJECT_PERFORMANCE_TEST_READ, PermissionConstants.PROJECT_TRACK_CASE_READ}, logical = Logical.OR) public List getLoadCaseByIds(@RequestBody List ids) { return performanceTestService.getLoadCaseByIds(ids); }