File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2209,16 +2209,16 @@ using annotations:
2209
2209
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
2210
2210
2211
2211
/**
2212
- * Require ROLE_ADMIN for *every* controller method in this class.
2212
+ * Require ROLE_ADMIN for all the actions of this controller
2213
2213
*
2214
2214
* @IsGranted("ROLE_ADMIN")
2215
2215
*/
2216
2216
class AdminController extends AbstractController
2217
2217
{
2218
2218
/**
2219
- * Require ROLE_ADMIN for only this controller method.
2219
+ * Require ROLE_SUPER_ADMIN only for this action
2220
2220
*
2221
- * @IsGranted("ROLE_ADMIN ")
2221
+ * @IsGranted("ROLE_SUPER_ADMIN ")
2222
2222
*/
2223
2223
public function adminDashboard(): Response
2224
2224
{
@@ -2234,15 +2234,15 @@ using annotations:
2234
2234
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
2235
2235
2236
2236
/**
2237
- * Require ROLE_ADMIN for *every* controller method in this class.
2237
+ * Require ROLE_ADMIN for all the actions of this controller
2238
2238
*/
2239
2239
#[IsGranted('ROLE_ADMIN')]
2240
2240
class AdminController extends AbstractController
2241
2241
{
2242
2242
/**
2243
- * Require ROLE_ADMIN for only this controller method.
2243
+ * Require ROLE_SUPER_ADMIN only for this action
2244
2244
*/
2245
- #[IsGranted('ROLE_ADMIN ')]
2245
+ #[IsGranted('ROLE_SUPER_ADMIN ')]
2246
2246
public function adminDashboard(): Response
2247
2247
{
2248
2248
// ...
You can’t perform that action at this time.
0 commit comments