ソースを参照

Merge pull request #1092 from pulzarraider/top_menu_fix

Fix check of route existence in top menu
Thomas 12 年 前
コミット
03d1ca6191
1 ファイル変更1 行追加2 行削除
  1. 1 2
      Resources/views/standard_layout.html.twig

+ 1 - 2
Resources/views/standard_layout.html.twig

@@ -98,7 +98,7 @@ file that was distributed with this source code.
                                                 <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ group.label|trans({}, group.label_catalogue) }} <span class="caret"></span></a>
                                                 <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ group.label|trans({}, group.label_catalogue) }} <span class="caret"></span></a>
                                                 <ul class="dropdown-menu">
                                                 <ul class="dropdown-menu">
                                                     {% for admin in group.items %}
                                                     {% for admin in group.items %}
-                                                        {% if admin.hasroute('create') and admin.isGranted('CREATE') or admin.hasroute('list') and admin.isGranted('LIST') %}
+                                                        {% if admin.hasroute('list') and admin.isGranted('LIST') %}
                                                             <li><a href="{{ admin.generateUrl('list')}}">{{ admin.label|trans({}, admin.translationdomain) }}</a></li>
                                                             <li><a href="{{ admin.generateUrl('list')}}">{{ admin.label|trans({}, admin.translationdomain) }}</a></li>
                                                         {% endif %}
                                                         {% endif %}
                                                     {% endfor %}
                                                     {% endfor %}
@@ -214,4 +214,3 @@ file that was distributed with this source code.
         </div>
         </div>
     </body>
     </body>
 </html>
 </html>
-