I tried to find a way to check admin user_group_id to render UI for specific admin user group.
I've tried just to add this variable to the view (order_list.twig), but it fails.
Code: Select all
{% if user_group.user_group_id === 1 %}
<li><a href="{{ order.order_id }}"><i class="fa fa-trash-o"></i> {{ button_delete }}</a></li>
{% endif %}