Added credential login check for visiting the profile page
This commit is contained in:
parent
6a070ca4e0
commit
717b9398bc
@ -49,6 +49,9 @@ class DefaultController extends AbstractController
|
||||
{
|
||||
/** @var User $user */
|
||||
$user = $this->getUser();
|
||||
if (!$user) {
|
||||
return $this->redirectToRoute('app_login');
|
||||
}
|
||||
$meta = $user->getMetaData();
|
||||
if (!$meta) {
|
||||
$meta = [
|
||||
|
Loading…
Reference in New Issue
Block a user