From d3e52269cdc63029a3ea0c52f653558d9f8fe5af Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 28 Aug 2022 17:48:25 +0200 Subject: [PATCH] app/views/backend/user/form.volt: only show "Send activation email" button for suspended users. --- app/views/backend/user/form.volt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/backend/user/form.volt b/app/views/backend/user/form.volt index ccc8157..1878dd1 100644 --- a/app/views/backend/user/form.volt +++ b/app/views/backend/user/form.volt @@ -56,9 +56,12 @@ {% if (user.getId()) %} {% set actions = [ 'Activate': 'Active', 'Suspend': 'Suspended', 'Delete': 'Deleted' ] %}
+ + {% if user.isSuspended() %} Send activation email + {% endif %} {% for label, status in actions %}