Added credential login check for visiting the profile page

This commit is contained in:
Ryan Prather 2024-07-02 01:39:11 -04:00
parent 6a070ca4e0
commit 717b9398bc

View File

@ -49,6 +49,9 @@ class DefaultController extends AbstractController
{ {
/** @var User $user */ /** @var User $user */
$user = $this->getUser(); $user = $this->getUser();
if (!$user) {
return $this->redirectToRoute('app_login');
}
$meta = $user->getMetaData(); $meta = $user->getMetaData();
if (!$meta) { if (!$meta) {
$meta = [ $meta = [