Revert "[AdminBundle] Hide Impersonate button when user shop account is locked"

This commit is contained in:
Rafał Jaskulski 2025-10-06 13:43:41 +02:00 committed by GitHub
parent f43a51e664
commit 618477f99f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,8 +11,8 @@
<i class="{{ user.verified ? 'green checkmark' : 'red remove' }} icon"></i>
{{ 'sylius.ui.email_verified'|trans }}
</div>
{% if is_shop_enabled() and user.isAccountNonLocked and user.enabled %}
<br />
{% if is_shop_enabled() %}
{{ buttons.default(path('sylius_admin_impersonate_user', {'username': user.emailCanonical}), 'sylius.ui.impersonate', 'impersonate', 'unhide', 'blue') }}
{% endif %}
{% endif %}