Эх сурвалжийг харах

Merge branch 'develop' into features/background

François Drouhard 3 жил өмнө
parent
commit
1774d29fb7

+ 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";