{% if ( session.get('userRole') != 'ROLE CLIENT USER' ) or ( session.get('actionPermission') == 'true' ) %}
{# do stuff #}
{% endif; %}
答案 0 :(得分:4)
{% if (session.get('userRole') != 'ROLE CLIENT USER' or session.get('actionPermission') == 'true') %}
{# ... do stuff #}
{% endif %}