Welcome,
I have two question .
1 : Is this possible to check if js code amd is included? When i have availability plugin i include AMD block but when i create
topics format and set my restriction my code is include many times.
2: When i log in moodle as admin when i type in code $COURSE->id i see a correct value but when i am student i always see id 1 (which is moodle course).
Is this possible to fix it ? I know i can use global $cm but it isnt't working as i want.
Thanks for any answers.