diff --git a/templates/admin/_delete_form.html.twig b/templates/admin/_delete_form.html.twig index 4ea4e92a..acc5a13d 100644 --- a/templates/admin/_delete_form.html.twig +++ b/templates/admin/_delete_form.html.twig @@ -5,7 +5,7 @@
-
+
{% set delete_disabled = (not is_granted("delete", entity)) or (entity.group is defined and entity.id == 1) or entity == app.user %}
@@ -20,7 +20,7 @@
{% if entity.parent is defined %} -
+