symfony - How to use OR Condition in twig and symfony2 -


{% if ( session.get('userrole') != 'role client user' ) or  ( session.get('actionpermission') == 'true' ) %}      {# stuff #}  {% endif; %} 

{% if (session.get('userrole') != 'role client user' or  session.get('actionpermission') == 'true') %}      {# ... stuff #}  {% endif %} 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -