|
@@ -88,7 +88,7 @@ file that was distributed with this source code.
|
|
|
<input type="submit" name="btn_update_and_edit" value="{% trans from 'SonataAdminBundle' %}btn_update_and_edit_again{% endtrans %}"/>
|
|
|
<input type="submit" name="btn_update_and_list" value="{% trans from 'SonataAdminBundle' %}btn_update_and_return_to_list{% endtrans %}"/>
|
|
|
|
|
|
- {% if admin.isGranted('DELETE') %}
|
|
|
+ {% if admin.hasroute('delete') and admin.isGranted('DELETE') %}
|
|
|
<a href="{{ admin.generateObjectUrl('delete', object) }}">{% trans from 'SonataAdminBundle' %}link_delete{% endtrans %}</a>
|
|
|
{% endif %}
|
|
|
{% else %}
|