大家好,我需要操作管理生成器的数据,我一直在阅读文档,但这对我没有帮助。我需要一个用户只能看到他的组的信息,而不能看到更多。
这是我的 generator.yml
generator: admingenerator.generator.propel
params:
model: Velfasa\SoporteBundle\Model\Usuario
namespace_prefix: Velfasa
concurrency_lock: ~
bundle_name: SoporteBundle
pk_requirement: ~
fields: ~
object_actions:
delete: ~
batch_actions:
delete: ~
builders:
list:
params:
title: Lista de usuarios
display: [ nombre, apellido, dpi, username, direccion, fecha_de_nacimiento]
actions:
new:
route: usuario_registro
object_actions:
edit:
route: usuario_editar
delete: ~
show:
route: usuario_visualizar
filters:
params:
display: [nombre, email, apellido, dpi, username, direccion, fecha_de_nacimiento]
new:
params:
title: Nuevo usuario
display: ~
actions:
save: ~
list: ~
edit:
params:
title: Editar
display: ~
actions:
save: ~
list: ~
show:
params:
title: Vista general
display: ~
actions:
list: ~
new: ~
actions:
params:
object_actions:
delete: ~
batch_actions:
delete: ~
你希望这里有人可以帮助我