Skip to content

Commit

Permalink
toggle is disabled if not authorized
Browse files Browse the repository at this point in the history
  • Loading branch information
alterphp committed Sep 13, 2018
1 parent 0d93d08 commit 279d79f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Resources/views/default/field_toggle.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% if is_easyadmin_granted(entity_config, 'edit', item) %}
{% include '@BaseEasyAdmin/default/field_toggle.html.twig' %}
{% else %}
{% include '@EasyAdmin/default/field_boolean.html.twig' %}
{% endif %}

0 comments on commit 279d79f

Please sign in to comment.