mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
admin are redirected to admin section
This commit is contained in:
parent
9eeb685d8f
commit
31f3744ad9
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user