简体   繁体   English

如何无法为多个用户提供后端客户模块?

[英]How to unable backend Customer Module for several users?

I'm working with Shopware.我正在使用 Shopware。

I've added a new attribute "proxy" to the s_core_auth table for each user in order to show the ability to get access to the Customer Module in the backend, so that if a user is not selected as "proxy" he/she won't be able to make changes in that module.我为每个用户在s_core_auth表中添加了一个新属性"proxy" ,以显示在后端访问客户模块的能力,这样如果用户未被选为"proxy" ,他/她就会获胜' 能够在该模块中进行更改。

I need help to understand what I need to write in my plugin's code (maybe having only a Subscriber file.)我需要帮助来理解我需要在我的插件代码中写什么(可能只有一个订阅者文件。)

I'll be very grateful!我将不胜感激!

Adding a custom column to the s_core_auth table is not a good idea.s_core_auth表添加自定义列不是一个好主意。 What you're trying to achieve can be done with user groups and group rights .您要实现的目标可以通过用户组组权限来完成。 From the Shopware Documentation :来自 Shopware 文档

With User administration you are able to create new users in the backend and control access rights to areas, modules and plugins in accordance with certain group policies that you define per ACL (Access Control List).通过用户管理,您可以在后端创建新用户,并根据您为每个 ACL(访问控制列表)定义的某些组策略控制对区域、模块和插件的访问权限。 Within the ACL you have the possibility to control precisely which user is able to perform which activity.在 ACL 中,您可以精确控制哪个用户能够执行哪个活动。 Thus, it is possible to assign certain reader rights to an administration group without granting them authorization to edit or delete.因此,可以将某些读者权限分配给管理组,而不授予他们编辑或删除的权限。

You can find instructions for User administration inside the Documentation .您可以在文档中找到有关用户管理的说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM