{% if is_granted('oro_case_view') %} {% import '@OroUI/macros.html.twig' as UI %} {% import '@OroEmail/macros.html.twig' as email %} {% import _self as caseTicketInfo %} {% macro render_zendesk_user(label, user) %} {% import '@OroUI/macros.html.twig' as UI %} {% import _self as caseTicketInfo %} {%- set userHtml -%} {%- if user -%} {% if user.relatedUser and is_granted('VIEW', user.relatedUser) %} {{ user.name|escape }} {% elseif user.relatedContact and is_granted('VIEW', user.relatedContact) %} {{ user.name|escape }} {% else %} {{ user.name|escape }} {% endif %} {%- endif -%} {%- endset -%} {% if label %} {{ UI.renderHtmlProperty(label, userHtml) }} {% else %} {{ userHtml }} {% endif %} {% endmacro %} {% set ticket = oro_zendesk_ticket_by_related_case(entity) %} {% if ticket %}