Custom js questions to target master course
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2020
07:06 AM
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