Reputation: 5341
Im using the doctrine admin generator, and I want to not allow the user to create new records (just to show them), is there any way to do that by setting up the "generator.yml" ? I've succeeded to remove de batch and per items actions and everything else is working perfect, but can't remove the "new" link =( This is what I have (the relevant part btw):
generator:
params:
config:
list:
batch_actions: {}
object_actions:
_delete: ~
Upvotes: 4
Views: 3121
Reputation: 10413
You need to change the "actions" value of list:
generator:
params:
config:
list:
actions: { }
You could restrict to a credential via:
generator:
params:
config:
list:
actions: { credentials: admin }
To clarify the difference between the action types:
Upvotes: 8