Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.7.1
-
MOODLE_27_STABLE
-
MOODLE_28_STABLE
-
wip-
MDL-46937-master -
Description
I've come to this problem working on an issue for custom course format: CONTRIB-5052
Currently function section_info::get_uservisible() checks section visibility and conditional availability. There is no way for course format to say that the section is not available for the current user because of some other courseformat-specific conditions. In my case section should become unavilable if the parent section is unavailable. Another use case maybe course format that has automatic time-based availability of sections, for example one section per week.
Also cm_info::$uservisible does not take into account section availability unless $CFG->enableavailability is on, so it needs to be changed too
For backward compatibility we still won't make module unavailable if parent section is invisible and the module is not.
Attachments
Issue Links
- Testing discovered
-
MDL-47240 section_info::get_availableinfo accesses nonexisting property groupingid
-
- Closed
-
- will help resolve
-
CONTRIB-5052 Grouping access to section
-
- Closed
-
-
MDL-20093 hide future course sections from students (weeks course format)
-
- Closed
-