openedx/openedx-platform

Hide sections when a learners cohort doesn't have access to the associated content group.

Open

#32,892 opened on Aug 1, 2023

View on GitHub
 (13 comments) (0 reactions) (1 assignee)Python (4,331 forks)auto 404
enhancementhelp wanted

Repository metrics

Stars
 (8,150 stars)
PR merge metrics
 (PR metrics pending)

Description

@MHaton mentioned that Sections are displayed for learners even when the learners cohort and the sections content group specify it's not for them.

Also annoyingly, learners always have access to sections, even when there are no units assigned to them in those sections. This means you'd have to put something in there saying "This isn't for you, move along". It's not ideal.

@ormsbee thought that the same logic that is used to hide subsections could be extend to hide sections. That logic is here.

Contributor guide