refactor(用户组和权限): 权限菜单分级展示
This commit is contained in:
parent
1263d9f443
commit
4350078392
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue