Pārlūkot izejas kodu

prochaines sorties en public

François Drouhard 3 gadi atpakaļ
vecāks
revīzija
9183bb21bc
2 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 1 1
      config/packages/security.yaml
  2. 5 0
      templates/navbar.html.twig

+ 1 - 1
config/packages/security.yaml

@@ -47,7 +47,7 @@ security:
     # Easy way to control access for large sections of your site
     # Note: Only the *first* access control that matches will be used
     access_control:
-        - { path: ^/(login$|register$|motdepasseoublie$|resetpassword/token=|activate/token=|fichefilm/|$|liste-by/|liste-by_real/|recherche) , roles: PUBLIC_ACCESS }
+        - { path: ^/(login$|register$|motdepasseoublie$|resetpassword/token=|activate/token=|fichefilm/|$|liste-by/|liste-by_real/|recherche|prochaines-sorties$) , roles: PUBLIC_ACCESS }
         - { path: ^/admin, roles: ROLE_ADMIN }
         - { path: ^/genre, roles: ROLE_MODERATEUR }
         - { path: ^/, roles: IS_AUTHENTICATED_REMEMBERED }

+ 5 - 0
templates/navbar.html.twig

@@ -11,6 +11,11 @@
                     {% if app.request.attributes.get('_route') == 'videotheque_liste' %}active{% endif %}"
                     href="{{ path('videotheque_liste') }}">Liste des films</a>
                 </li>
+                <li class="nav-item">
+                    <a class="nav-link
+                    {% if app.request.attributes.get('_route') == 'prochaines_sorties' %}active{% endif %}"
+                    href="{{ path('prochaines_sorties') }}">Prochaines sorties</a>
+                </li>
             </ul>
         {% endif %}
         {%  if is_granted('IS_AUTHENTICATED_REMEMBERED') %}