How to use voter with "provider" and "output" ? #2309
-
Hello, with this kind of configuration :
Where Inscription is an entity, InscriptionProvider the provider InscriptionView the object wich will be serialized in a json response like What is the correct way to use the voter ? Currently I call it like I used to do in the controller in older version :
But is there a better way to do that, directly in the mapping for example ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello! https://api-platform.com/docs/core/security/#hooking-custom-permission-checks-using-voters |
Beta Was this translation helpful? Give feedback.
Hello!
https://api-platform.com/docs/core/security/#hooking-custom-permission-checks-using-voters