I would like to use voters to enhence the security in my code. I want only some users to be able to delete collection of items.
Here my exemple:
I have an Article and Tags associated to the Article. I want an author of the Article to be able to delete Tags associated with that Article (only author of the article can do this)
I was thinking of using voters (to check that a user is the author of the article), but every single exemple I found on the internet show voters that are called either from twig or from the controller... while with collection option "allow-delete" symfony call the method removeTag($tag) from entity Article. Also I do not see how/where I can call the voters.