Moodle Plugins directory: Restriction by cohort | Moodle.org

Restriction by cohort
If your teachers want to restrict activities / resources / sections in their course to a subset of the course participants and these course participants share a common cohort, this plugin is for you.
Have a look at an example:
- The Moodle instance provides cohorts for each study subject and groups all students with the same subject in the corresponding cohort.
- Tim Teacher is an editing teacher in course A.
- If Tim wants to provide activities / resources / sections only for the students of a specific study subject, for example informatics, there is no possibility to achieve this with Moodle core functionality.
With availability_cohort, Tim can do this easily. He is just able to restrict his activities / resources / sections to a certain cohort and only the members of this cohort get access to the activities / resources / sections.
Please see README file for details about the usage and features of this plugin.
No support in the comments section on this page
Please note that we don't provide any support for this plugin in the comments section on this page.
We appreciate your commendation and reviews for this plugin in the comments. For bug reports and support requests, please read the extensive information in the plugin's README file first and create, if needed, a ticket in the bug tracker which is linked below.
Thanks for your cooperation.
It was exactly what I needed.
And it works like clockwork.
Thank you very, very much.
Hello,
Thank you for your plugin; it will be very useful to us!
I'm reporting a problem to you and will see if you have a solution.
I enroll a cohort in my course.
I apply a restriction to an activity.
I unenroll the cohort from my course -> the cohort restriction remains in effect on the activity.
Do you have a solution to this problem? I'm reporting that the cohort is no longer present and therefore the restriction needs to be changed.
Thank you for your help.