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(); }