marinaglancy / moodle-format_flexsections

25 stars 25 forks source link

Activities in subsections are not inheriting parent section restrictions #49

Open renato-araujo opened 1 year ago

renato-araujo commented 1 year ago

Hi Marina,

Great course format plugin. Thanks! When a section has availability conditions to not be shown to some users, its activities are hidden as well. However, activities inside a subsection are not inheriting its parent section avaliability conditions.

The subsections may not be displayed to users, but its activities show up in the calendar.

In my tests, this problem occurs on Moodle 4. On Moodle 3.11, it seems to be working properly.

pabordel commented 1 year ago

Hi Marina thanks for developing and maintaining this great course format. I confirm the bug : restrictions do not apply to subsection, Only visibility does. I'm using moodle 4.1.1+ with version 4.0.1 2022061900 of this plugin.

Regards

renato-araujo commented 1 year ago

Hi Marina,

Is it possible to fix this issue?

The format_flexsections plugin is really great, very useful and this bug is causing some problems to students. If a restricted activity show up in the calendar to everyone, some students are submitting it, even if the condition is not set to them.

Sorry for following up and thanks again for the great plugin.

Regards,

Renato