Browse Source

Merge pull request #1092 from pulzarraider/top_menu_fix

Fix check of route existence in top menu
Thomas 12 năm trước cách đây
mục cha
commit
03d1ca6191
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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>
                                                 <ul class="dropdown-menu">
                                                     {% 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>
                                                         {% endif %}
                                                     {% endfor %}
@@ -214,4 +214,3 @@ file that was distributed with this source code.
         </div>
     </body>
 </html>
-