1

目前,我已经构建了一个 Azure DevOps 扩展,其中包含对所有人可见的菜单项。这不是问题,但现在我们要为特定用户组隐藏一些页面。

我只能找到有关设置自定义菜单项的有限信息,并且我没有找到任何解决方案如何使菜单项角色或团队为基础。

您可以在下面看到我当前的扩展文件。谁能告诉我如何解决这个问题?

{
    // ...
    "contributions": [
        {
            "id": "xxx-hub-group",
            "type": "ms.vss-web.hub-group",
            "description": "XXX",
            "targets": [
                "ms.vss-web.project-hub-groups-collection"
            ],
            "properties": {
                "name": "XXX",
                "icon": "img/xxx.png"
            }
        },
        {
            "id": "sub-xxx",
            "type": "ms.vss-web.hub",
            "description": "sub-xxx",
            "targets": [
                ".xxx-hub-group"
            ],
            "properties": {
                "name": "sub-xxx",
                "title": "sub-xxx",
                "icon": "img/sub-xxx.png",
                "uri": "pages/sub-xxx.html",
                "supportedScopes": [
                    "project_team"
                ]
            }
        }
    ]
}
4

0 回答 0