Преглед на файлове

Correction du bug quand non loggé

François Drouhard преди 3 години
родител
ревизия
65b9dee7f7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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";