Hello all
I have a requirement as my web page access control is not working that I want to show a access denied page if the user has a particular role. in other places I have used liquid code and show different entitity forms/lists depending on the roles of the user.
for example
{% if user.roles contains 'Institutional Secretaries' %}
{% include 'entity_list' key:'Registry Entity List Approved' %}
{% else %}
{% include 'entity_list' key:'Registry Entity List ALL' %}
{% endif %}
How Can i do this for web page or web form..
{% if user.roles contains 'Secretaries' %}
{% include 'web_page' key:'Access Denied' %}
{% else %}
{% include 'web_form' key:'Research Registry Application' %}
{% endif %}
SO if a user with the role of Secretaries comes in They get the Access Denied page. else my webform loads ..
Thank you for all your help in advance.