feature #442 Add a security Post Voter (yceruto, javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Add a security Post Voter Implement https://github.com/symfony/symfony-demo/issues/440 feature. - [x] Add more code comments and doc references Following some references and recommendations in: - https://symfony.com/doc/current/components/security/authorization.html - http://symfony.com/doc/current/security/voters.html - https://stovepipe.systems/post/symfony-security-roles-vs-voters (@iltar blog) Any suggestion is welcome! Commits ------- a592eeac Minor reword in the help note 8468423e Simplified the voter code a bit c14e9dbc Add security post voter
Showing
- app/Resources/views/blog/post_show.html.twig 1 addition, 1 deletionapp/Resources/views/blog/post_show.html.twig
- app/config/services.yml 8 additions, 0 deletionsapp/config/services.yml
- src/AppBundle/Controller/Admin/BlogController.php 5 additions, 11 deletionssrc/AppBundle/Controller/Admin/BlogController.php
- src/AppBundle/Security/PostVoter.php 61 additions, 0 deletionssrc/AppBundle/Security/PostVoter.php
Loading
Please register or sign in to comment