{% requirePermission %} with OR condition I need to use requirePermission tag to check if one or another permission is active.

I want to reproduce something like this:

{% if currentUser.can('perm1') or currentUser.can('perm2')  %}
   &lt;!-- My page stuff --&gt;
{% else %}
   {% exit 403 %}
{% endif %}


How can I make this possible {% requirePermission "perm1_or_perm2" %} ?
The {% requirePermission 'perm1' %} tag only supports a single permission. Behind the scenes it's effectively the same as:

{% if not currentUser.can('perm1') %}
    {% exit 403 %}
{% endif %}


So I think either what you already have, or this:

{% if not currentUser.can('perm1') and not currentUser.can('perm2') %}
    {% exit 403 %}
{% endif %}

&lt;!-- Your page stuff --&gt;


Is probably your best bet at the moment. Checking that the user doesn't have both permissions, is the same as checking they do have one or the other.