redirect on login
This commit is contained in:
parent
20bc6e92bc
commit
307e615fb3
|
|
@ -14,9 +14,13 @@ final class IndexController extends AbstractController
|
|||
#[Route('/', name: 'app_index')]
|
||||
public function index(): Response
|
||||
{
|
||||
if($this->isGranted('ROLE_ADMIN')){
|
||||
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