• 首页
  • 产品中心
    • 数式Oinone四大产品

      低代码开发平台无代码开发平台集成开发平台AI大模型开发
    • 数式Oinone体系能力

      用户与组织权限管理文件管理消息中心国际化业务审计
    • 数式Oinone核心产品特性

      低无一体面向软件公司场景无限制应用级扩容可分可合
  • 服务中心
    • 客户服务

      预约演示方案咨询私有部署找人定制
    • 开发者

      问答下载
    • Oinone学院

      社区学习

    《精讲面向软件公司的低代码平台——以Oinone为例》

  • 合作伙伴
    渠道申请伙伴名录专家库
  • 关于数式
0571-88757863

Permission Extension:How to Delete the Default Homepage Node in System Permissions


I. Scenario Overview

You may wonder why there is a homepage configuration in the system permission menu even though you haven't set it up. It also displays that the current resource is not initialized and cannot be configured. This article will help you delete this node.


Note

If you add the following code, you will need to remove it later if you need to use the homepage configuration.

II. Extend Permission Loading Nodes:

Traverse the loaded permission nodes, find the homepage node of the module to be deleted, and remove it.

@Component
@Order(88)
@SPI.Service
public class MyTestNodeLoadExtend implements PermissionNodeLoadExtendApi {

    @Override
    public List<PermissionNode> buildRootPermissions(PermissionLoadContext loadContext, List<PermissionNode> nodes) {
        // Delete the homepage node of TopModule.MODULE_MODULE.
        String homepage = TranslateUtils.translateValues(PermissionNodeLoaderConstants.HOMEPAGE_DISPLAY_VALUE);
        for (PermissionNode node : nodes) {
            // If you need to delete homepages of multiple modules, add more logical AND conditions here.
            if (!(node instanceof ModulePermissionNode) || !TopModule.MODULE_MODULE.equals(((ModulePermissionNode) node).getModule())) {
                continue;
            }
            List<PermissionNode> permissionNodes = node.getNodes();
            Iterator<PermissionNode> iterator = permissionNodes.iterator();
            while (iterator.hasNext()) {
                PermissionNode permissionNode = iterator.next();
                if (ResourcePermissionSubtypeEnum.HOMEPAGE.equals(permissionNode.getNodeType())
                    && homepage.equals(permissionNode.getDisplayValue())) {
                    iterator.remove();
                    // If deleting homepages of multiple modules, change 'return' to 'break' here;
                    return nodes;
                }
            }
        }
        return nodes;
    }
}

Effect: The homepage node is successfully deleted.

Edit this page
Last Updated:1/15/26, 4:02 AM
Prev
Permission Extension:How to Skip Permission Interception for Functions
Next
Permission Extension:How to Extend Action Permissions
默认页脚
Copyright © 2026 Mr.Hope