Skip to content

Instantly share code, notes, and snippets.

@rruhlen
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rruhlen/8852483 to your computer and use it in GitHub Desktop.
Save rruhlen/8852483 to your computer and use it in GitHub Desktop.
detect custom field on customer object set from the SSO/Desk Auth in web theme.
{% if portal.authentication_enabled %}
{% if current_user.customer.custom_user_type == 'Student' %}
content for students who are logged into the support portal
{% elsif current_user.customer.custom_user_type == 'Teacher' %}
content for Teachers who are logged into the support portal
{% else %}
display error message
{% endif %}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment