diff --git a/Resources/views/CRUD/base_edit.html.twig b/Resources/views/CRUD/base_edit.html.twig index 10a84e4e0d..14278bf8ec 100644 --- a/Resources/views/CRUD/base_edit.html.twig +++ b/Resources/views/CRUD/base_edit.html.twig @@ -25,7 +25,7 @@ file that was distributed with this source code. {% if admin.hasroute('show') and admin.id(object) and admin.isGranted('VIEW', object) and admin.show|length > 0 %}
  • {% trans from 'SonataAdminBundle' %}link_action_show{% endtrans %}
  • {% endif %} - {% if admin.hasroute('history') and admin.id(object) and admin.isGranted('EDIT') %} + {% if admin.hasroute('history') and admin.id(object) and admin.isGranted('EDIT', object) %}
  • {% trans from 'SonataAdminBundle' %}link_action_history{% endtrans %}
  • {% endif %} {% if admin.hasroute('create') and admin.isGranted('CREATE')%} diff --git a/Resources/views/CRUD/base_history.html.twig b/Resources/views/CRUD/base_history.html.twig index 99ee9ffecb..2269e62e6f 100644 --- a/Resources/views/CRUD/base_history.html.twig +++ b/Resources/views/CRUD/base_history.html.twig @@ -14,10 +14,10 @@ file that was distributed with this source code. {% block actions %}