Symfony erişim kısıtlama CRUD eylemlerine

0 Cevap php

I have simply CRUD function generated by symfony. There is article class and article owner. I want to prevent other users than owner of current article tu edit it. I was thinking about custom my own filter or validator but when i will implement validator some of the users can enter into edit form (they couldn't only sent it). But when I will implement user filter there will be problem to make filter execute only before some actions (edit in this case).

Ben o nasıl yapmalıyım?

0 Cevap