
Restriction by course role
- Moodle 5.3
- 中文 62%
- 更新 2026-10-23
Moodle availability plugin which lets users restrict resources, activities and sections based on roles
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 course role, this plugin is for you.
Have a look at an example:
Tim Teacher is an editing teacher in course A.
Carl Clueless and Steve Smart are Tim’s student assistants.
As Moodle admin, you have already created a custom course role called “student assistant” in your Moodle installation. Carl and Steve have this role in course A to do their work.
If Tim wants to provide activities / resources / sections only for Carl and Steve in course A, for example a forum activity where they can discuss internal stuff, he had to do some workarounds in the past. The most popular solution was to put Carl and Steve into a group and restrict the activities / resources / sections to this group, but there were even more complicated workarounds.
With availability_role, Tim does not need any workarounds anymore. He is just able to restrict his activities / resources / sections to a certain course role and all users who have this role in the course context have access.
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.