[管理员标签上的magento 2客户侧边栏删除新闻稿

问题描述 投票:0回答:1

我如何删除管理员侧客户标签中的2个侧标签,请查看附件https://prnt.sc/s76tjx

<referenceBlock name="customer_edit_tab_view">
    <referenceBlock name="customer.billing.agreement.grid" remove="true" /> <!-- Not working -->
    <referenceBlock name="billing" remove="true" /> <!-- Not working -->
    <referenceBlock name="billing-agreement" remove="true" /> <!-- Not working -->
</referenceBlock>

提前感谢

tabs magento2 admin sidebar
1个回答
0
投票

如果我正确理解了您的问题,“删除”新闻通讯(或您想要的其他任何部分,而无需接触Magento的核心文件)的最简单方法就是编辑用户角色。因此,您可以按角色自定义用户权限,并为不同的用户创建不同的角色:

  1. 转到System -> User Roles,然后单击相应的角色(例如Administrators
  2. 转到Role Resources,然后取消选中Newsletter Section下的Stores选项。 (如果未显示任何资源,但选择了All的选择器,请将其更改为Custom,然后选择所有资源,但不需要的资源)

我希望这能解决您的问题。

All roles selected but Newsletter Section

© www.soinside.com 2019 - 2024. All rights reserved.