From cd1710ead3100367c9a63b45780de866a1ce9845 Mon Sep 17 00:00:00 2001 From: Piotr Szymaszek Date: Mon, 9 Dec 2019 11:33:11 +0100 Subject: [PATCH] Fixed attempting to access getId method on a user class without it --- Resources/views/Admin/datagrid.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/Admin/datagrid.html.twig b/Resources/views/Admin/datagrid.html.twig index 1c86cd29..a5c14a2f 100644 --- a/Resources/views/Admin/datagrid.html.twig +++ b/Resources/views/Admin/datagrid.html.twig @@ -4,7 +4,7 @@ {# pattern: datagrid_{grid_name}_column_name_{column_name}_cell #} {% block datagrid_admin_security_user_column_name_batch_cell %} - {% if cell.value == app.user.id %} + {% if attribute(app.user, 'getId') is not defined or cell.value == app.user.id %} {% else %}