Relative Content

Tag Archive for phpsecurityapi-platform.comaccess-controlsymfony7

Why is my Voter being called multiple times and without the subject when securing properties in API Platform?

I am working on a Symfony 7 application where I need to implement fine-grained access control using security voters. Specifically, I want to grant access to an entire resource based on one set of rules, but restrict access to a specific property within that resource based on another set of rules. Despite my configuration attempts, I am encountering issues where my security voters are being called multiple times, and sometimes the object is not provided, leading to denied access.