Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Do not show the Course Media and Lesson Media sections for user not taking course #42
Also adds filter
Note that the media may still be accessible to anyone via a direct link. However, the links are no longer visible on the Course and Lesson pages.
One point to discuss: this PR only checks to see if the user has started the course. However, in some cases course and lesson content should be shown to users who have not started the course as well. Currently this PR does not take that into consideration, which means that media attachment links will not show up for these users, even if the rest of the content is being displayed.
Well, when the "Access Permissions" checkbox is unchecked, then anyone can view lesson content (https://cld.wthms.co/H1G5uG). Similarly, if the lesson is set as a "preview" lesson. I'm not sure whether there are similar cases for seeing the course content?