我需要从内存提供程序中检索用户对象,并授予所有者通过aclProvider访问它并且它不是当前用户。
Config.yml:
providers:
in_memory:
memory:
users:
user1: { password: gggg, roles: [ 'ROLE_USER' ] }
user2: { password: gggg, roles: [ 'ROLE_USER' ] }
user3: { password: gggg, roles: [ 'ROLE_USER' ] }
user4: { password: gggg, roles: [ 'ROLE_USER' ] }
admin: { password: gggg, roles: [ 'ROLE_ADMIN' ] }