From 4350078392e5aed6c6f52063b0e02ad048c5b628 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 21 May 2021 12:11:56 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=94=A8=E6=88=B7=E7=BB=84=E5=92=8C?= =?UTF-8?q?=E6=9D=83=E9=99=90):=20=E6=9D=83=E9=99=90=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E5=88=86=E7=BA=A7=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/metersphere/service/GroupService.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/src/main/java/io/metersphere/service/GroupService.java b/backend/src/main/java/io/metersphere/service/GroupService.java index ef736f20c4..fdf2b6800d 100644 --- a/backend/src/main/java/io/metersphere/service/GroupService.java +++ b/backend/src/main/java/io/metersphere/service/GroupService.java @@ -119,10 +119,7 @@ public class GroupService { List resource = group.getResource(); List permissions = group.getPermissions(); List dtoPermissions = dto.getPermissions(); - List groups = map.get(type); - for (String gp : groups) { - dtoPermissions.addAll(getResourcePermission(resource, permissions, gp, permissionList)); - } + dtoPermissions.addAll(getResourcePermission(resource, permissions, type, permissionList)); } catch (IOException e) { e.printStackTrace(); }