mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 01:53:49 +00:00
admin are redirected to admin section
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user