|
@@ -9,7 +9,7 @@ file that was distributed with this source code.
|
|
|
|
|
|
#}
|
|
|
|
|
|
-{% if admin.hasRoute('show') %}
|
|
|
+{% if admin.isGranted('VIEW', object) and admin.hasRoute('show') %}
|
|
|
<a href="{{ admin.generateObjectUrl('show', object) }}" class="btn view_link btn-small" title="{{ 'action_show'|trans({}, 'SonataAdminBundle') }}">
|
|
|
<i class="icon-zoom-in"></i>
|
|
|
{{ 'action_show'|trans({}, 'SonataAdminBundle') }}
|