Determine sub-accounts via JQuery?

MikeBrinkman
Community Participant

Here's a scenario I'm trying to figure out:

I have created a new sub-account for online students at our college. I also created a new role for the students based off of the original student role.

I want to have a link in the Global Navigation help menu called "Support for online students" that is only visible for these students, since support for them is going to be handled differently. We don't want those students contacting our regular support, and we don't want our in-person student contacting the online student support.

When I query to see what roles the grad students have in ENV.current_user_roles, it shows student as opposed to online student, so I can't use that to hide the menu item using Javascript based on roles. Is there a way to determine if a student is viewing courses under a separate sub-account? These students' courses will exist solely under that sub-account.

0 Likes