|
@@ -28,17 +28,17 @@ |
|
|
block discarded – undo |
|
28
|
28
|
* @param \Symfony\Component\HttpFoundation\Request $request Request object |
|
29
|
29
|
* @return \Symfony\Component\HttpFoundation\Response HTML page for the admin interface |
|
30
|
30
|
*/ |
|
31
|
|
- public function indexAction( Request $request ) |
|
|
31
|
+ public function indexAction(Request $request) |
|
32
|
32
|
{ |
|
33
|
|
- if( $this->has( 'security.authorization_checker' ) && ( $service = $this->get( 'security.authorization_checker' ) ) |
|
34
|
|
- && $this->get( 'security.token_storage' )->getToken() && $service->isGranted( 'ROLE_ADMIN' ) |
|
35
|
|
- || $this->has( 'security.context' ) && ( $service = $this->get( 'security.context' ) ) |
|
36
|
|
- && $service->getToken() && $service->isGranted( 'ROLE_ADMIN' ) |
|
|
33
|
+ if ($this->has('security.authorization_checker') && ($service = $this->get('security.authorization_checker')) |
|
|
34
|
+ && $this->get('security.token_storage')->getToken() && $service->isGranted('ROLE_ADMIN') |
|
|
35
|
+ || $this->has('security.context') && ($service = $this->get('security.context')) |
|
|
36
|
+ && $service->getToken() && $service->isGranted('ROLE_ADMIN') |
|
37
|
37
|
) { |
|
38
|
|
- $params = array( 'site' => 'default', 'resource' => 'product', 'lang' => 'en' ); |
|
39
|
|
- return $this->redirect( $this->generateUrl( 'aimeos_shop_jqadm_search', $params ) ); |
|
|
38
|
+ $params = array('site' => 'default', 'resource' => 'product', 'lang' => 'en'); |
|
|
39
|
+ return $this->redirect($this->generateUrl('aimeos_shop_jqadm_search', $params)); |
|
40
|
40
|
} |
|
41
|
41
|
|
|
42
|
|
- return $this->render( 'AimeosShopBundle:Admin:index.html.twig', array( 'email' => $request->get( 'email' ) ) ); |
|
|
42
|
+ return $this->render('AimeosShopBundle:Admin:index.html.twig', array('email' => $request->get('email'))); |
|
43
|
43
|
} |
|
44
|
44
|
} |
Please login to merge, or discard this patch.