Last active
August 29, 2015 13:56
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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