admin are redirected to admin section

This commit is contained in:
Julien Fastré 2015-09-21 22:51:04 +02:00
parent 9eeb685d8f
commit 31f3744ad9

View File

@ -8,6 +8,11 @@ class DefaultController extends Controller
{
public function indexAction()
{
if ($this->isGranted('ROLE_ADMIN')) {
return $this->redirectToRoute('chill_main_admin_central');
}
return $this->render('ChillMainBundle::layout.html.twig');
}