@@ 18-29 (lines=12) @@ | ||
15 | * |
|
16 | * @return Response |
|
17 | */ |
|
18 | public function indexAction(Application $app) |
|
19 | { |
|
20 | if (!$app['security']->isGranted('ROLE_ADMIN')) { |
|
21 | $app->abort(403); |
|
22 | } |
|
23 | ||
24 | return new Response( |
|
25 | $app['twig']->render( |
|
26 | 'contents/members-area/statistics/index.html.twig' |
|
27 | ) |
|
28 | ); |
|
29 | } |
|
30 | } |
|
31 |
@@ 20-34 (lines=15) @@ | ||
17 | * |
|
18 | * @return Response |
|
19 | */ |
|
20 | public function indexAction(Application $app) |
|
21 | { |
|
22 | if ( |
|
23 | !$app['security']->isGranted('ROLE_TOOLS') && |
|
24 | !$app['security']->isGranted('ROLE_ADMIN') |
|
25 | ) { |
|
26 | $app->abort(403); |
|
27 | } |
|
28 | ||
29 | return new Response( |
|
30 | $app['twig']->render( |
|
31 | 'contents/members-area/tools/index.html.twig' |
|
32 | ) |
|
33 | ); |
|
34 | } |
|
35 | ||
36 | /** |
|
37 | * @param Request $request |