Skip to content

Commit

Permalink
minor #832 Remove outdated comment (codedmonkey)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Remove outdated comment

Removes a comment that was obsoleted by changing usages of `@Security` to the `@IsGranted` annotation.

Commits
-------

7660c76 Remove outdated comment
  • Loading branch information
javiereguiluz committed Jul 18, 2018
2 parents 559b771 + 7660c76 commit c624230
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Controller/Admin/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ public function edit(Request $request, Post $post): Response
*
* @Route("/{id}/delete", methods={"POST"}, name="admin_post_delete")
* @IsGranted("delete", subject="post")
*
* The Security annotation value is an expression (if it evaluates to false,
* the authorization mechanism will prevent the user accessing this resource).
*/
public function delete(Request $request, Post $post): Response
{
Expand Down

0 comments on commit c624230

Please sign in to comment.