8000 - · symfony/symfony-docs@ece61e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit ece61e1

Browse files
committed
-
1 parent 9ce1304 commit ece61e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

security.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,16 +2209,16 @@ using annotations:
22092209
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
22102210
22112211
/**
2212-
* Require ROLE_ADMIN for *every* controller method in this class.
2212+
* Require ROLE_ADMIN for all the actions of this controller
22132213
*
22142214
* @IsGranted("ROLE_ADMIN")
22152215
*/
22162216
class AdminController extends AbstractController
22172217
{
22182218
/**
2219-
* Require ROLE_ADMIN for only this controller method.
2219+
* Require ROLE_SUPER_ADMIN only for this action
22202220
*
2221-
* @IsGranted("ROLE_ADMIN")
2221+
* @IsGranted("ROLE_SUPER_ADMIN")
22222222
*/
22232223
public function adminDashboard(): Response
22242224
{
@@ -2234,15 +2234,15 @@ using annotations:
22342234
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
22352235
22362236
/**
2237-
* Require ROLE_ADMIN for *every* controller method in this class.
2237+
* Require ROLE_ADMIN for all the actions of this controller
22382238
*/
22392239
#[IsGranted('ROLE_ADMIN')]
22402240
class AdminController extends AbstractController
22412241
{
22422242
/**
2243-
* Require ROLE_ADMIN for only this controller method.
2243+
* Require ROLE_SUPER_ADMIN only for this action
22442244
*/
2245-
#[IsGranted('ROLE_ADMIN')]
2245+
#[IsGranted('ROLE_SUPER_ADMIN')]
22462246
public function adminDashboard(): Response
22472247
{
22482248
// ...

0 commit comments

Comments
 (0)
0