mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 18:13:48 +00:00
make redirection to home page temporarily
Some users experienced 403 error when they switched from an admin account to a non-admin account, due to the browser cache containing a redirection.
This commit is contained in:
@@ -10,7 +10,7 @@ class DefaultController extends Controller
|
||||
{
|
||||
if ($this->isGranted('ROLE_ADMIN')) {
|
||||
|
||||
return $this->redirectToRoute('chill_main_admin_central');
|
||||
return $this->redirectToRoute('chill_main_admin_central', [], 302);
|
||||
}
|
||||
|
||||
return $this->render('ChillMainBundle::layout.html.twig');
|
||||
|
Reference in New Issue
Block a user