【问题标题】:How do I hide the "Cloudcommons" field for a specific group in the Hybris Backoffice search tree如何在 Hybris Backoffice 搜索树中隐藏特定组的“Cloudcommons”字段
【发布时间】:2022-01-27 08:03:09
【问题描述】:

我正在使用 Hybris 版本 20.05(云)。 后台树中有一个“Cloudcommens”字段。 但是如果登录员工的组中有“TestRabia”,我不希望用户看到“Cloudcommens”字段。 但仍有“TestRabia(UserGroup)”的用户看到的是“Cloudcommens”字段。

为此: ...backoffice-backoffice-config.xml 我添加以下代码:

<context merge-by="principal" component="explorer-tree" principal="TestRabia">
    <explorer-tree:explorer-tree xmlns:explorer-tree="http://www.hybris.com/cockpitng/config/explorertree">
        <explorer-tree:navigation-node id="hmc.cloudcommons" merge-mode="remove" />
    </explorer-tree:explorer-tree>
</context>

我该如何解决这个问题? 非常感谢您的帮助。

【问题讨论】:

  • 我希望您已经执行了后台重置。
  • 是的,我做了重置。

标签: hybris restriction usergroups backoffice principal


【解决方案1】:

由于我要限制的组类型是 UserGroup,我无法进行此限制。 当我将组的类型更改为 BackkoficeRole 时,我编写的主要上下文代码有效。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-05
    • 1970-01-01
    • 2016-06-20
    • 2018-08-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多