refactor(用户组和权限): 权限菜单分级展示

This commit is contained in:
shiziyuan9527 2021-05-21 12:11:56 +08:00 committed by 刘瑞斌
parent 1263d9f443
commit 4350078392
1 changed files with 1 additions and 4 deletions

View File

@ -119,10 +119,7 @@ public class GroupService {
List<GroupResource> resource = group.getResource();
List<GroupPermission> permissions = group.getPermissions();
List<GroupResourceDTO> dtoPermissions = dto.getPermissions();
List<String> 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();
}