Skip to content

Commit 51b5135

Browse files
committed
Fixed the has_role() deprecation
1 parent ec6bd34 commit 51b5135

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Controller/Admin/BlogController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* See http://knpbundles.com/keyword/admin
3434
*
3535
* @Route("/admin/post")
36-
* @Security("has_role('ROLE_ADMIN')")
36+
* @Security("is_granted('ROLE_ADMIN')")
3737
*
3838
* @author Ryan Weaver <weaverryan@gmail.com>
3939
* @author Javier Eguiluz <javier.eguiluz@gmail.com>

src/Controller/UserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Controller used to manage current user.
2525
*
2626
* @Route("/profile")
27-
* @Security("has_role('ROLE_USER')")
27+
* @Security("is_granted('ROLE_USER')")
2828
*
2929
* @author Romain Monteil <monteil.romain@gmail.com>
3030
*/

0 commit comments

Comments
 (0)