2

I've already found the entry, and the 'users' field can contain multiple users.

2

I asked this on the Slack chat and Brad Bell kindly came to the rescue.


{% set match = false %}

{% for user in entry.users %}
    {% if user.username == currentUser.username %}
        {% set match = true %}
    {% endif %} 
{% endfor %}

{% if match %}
    User matches!
{% endif %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.