Make snip public index available if not logged in
This commit is contained in:
@ -11,6 +11,10 @@ class HomeController extends AbstractController
|
||||
#[Route('/', name: 'home')]
|
||||
public function home(): Response
|
||||
{
|
||||
return $this->redirectToRoute('snip_index');
|
||||
if ($this->getUser()) {
|
||||
return $this->redirectToRoute('snip_index');
|
||||
} else {
|
||||
return $this->redirectToRoute('snip_public');
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user