Custom js questions to target master course

jackson_t1
Community Member

Hello all!

We want to hide some course settings via a custom js script.

We already do so based on user roles for some settings

However, I also want to do so if the current user is a teacher and is currently in a Master course.

We have a term called Master in which all our master courses exist

Is there a way to use the ENV  or other variable to determine if the user is currently editing the settings in a master course? Maybe something like :

if (ENV[‘course’].includes(‘master’))

 

Any help would be appreciated!

Thank you!

Tony

 

0 Likes