private List<ResourceVO> getResourceListByUserNameAndPluginNames(final String userName, final Collection<String> pluginNames) {
        if (SessionUtil.isAdmin()) {
            return ListUtil.map(resourceMapper.selectByUserName(userName), ResourceVO::buildResourceVO);
        }
        // filter [Only the super administrator root user has the privileges]
        return resourceMapper.selectByUserName(userName)
                .stream()
                .filter(r -> !dashboardProperties.getOnlySuperAdminPermission().contains(r.getPerms()))
                .filter(r -> {
                    String url = r.getUrl();
                    if (StringUtils.isBlank(url)) {
                        return true;
                    }
                    if (url.contains("/plug/")) {
                        return pluginNames.contains(url.replaceFirst("/plug/", ""));
                    }
                    return true;
                })
                .map(ResourceVO::buildResourceVO)
                .collect(Collectors.toList());
    }
get resource by username.

@param userName username
@param pluginNames plugin names
@return {@linkplain List}
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/PermissionServiceImpl.java