Quellcode durchsuchen

Correction du bug quand non loggé

François Drouhard vor 3 Jahren
Ursprung
Commit
65b9dee7f7
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/Controller/VideothequeController.php

+ 1 - 1
src/Controller/VideothequeController.php

@@ -28,7 +28,7 @@ class VideothequeController extends AbstractController
 	public function listeAction(Request $request, FilmRepository $repo)
 	{
         $listeFilms = $repo->findTous();
-        if ($this->getUser()->getProfile()->getView() === 0) {
+        if ($this->isGranted('IS_AUTHENTICATED_FULLY') && $this->getUser()->getProfile()->getView() === 0) {
             $type = "tableaux";
         } else {
             $type = "vignettes";