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