redirect on login
This commit is contained in:
parent
20bc6e92bc
commit
307e615fb3
|
|
@ -17,6 +17,10 @@ final class IndexController extends AbstractController
|
|||
if ($this->isGranted('ROLE_ADMIN')) {
|
||||
return $this->redirectToRoute('organization_index');
|
||||
}
|
||||
|
||||
if($this->isGranted('ROLE_USER')) {
|
||||
return $this->redirectToRoute('application_index');
|
||||
}
|
||||
return $this->render('index/index.html.twig', [
|
||||
'controller_name' => 'IndexController',
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue