Skip to content

Commit

Permalink
Merge pull request #130 from szymach/3.2
Browse files Browse the repository at this point in the history
Fixed attempting to access getId method on a user class without it
  • Loading branch information
chives authored Dec 9, 2019
2 parents e917c22 + cd1710e commit dbbc9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/Admin/datagrid.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{# pattern: datagrid_{grid_name}_column_name_{column_name}_cell #}
{% block datagrid_admin_security_user_column_name_batch_cell %}
<td>
{% if cell.value == app.user.id %}
{% if attribute(app.user, 'getId') is not defined or cell.value == app.user.id %}
<input type="checkbox" disabled />
{% else %}
<input type="checkbox"
Expand Down

0 comments on commit dbbc9d4

Please sign in to comment.