Availability conditions: Restriction by course role

availability_role
Maintained by Picture of Ulm University Ulm University, Picture of Alexander Bias Alexander Bias
Moodle availability plugin which lets users restrict resources, activities and sections based on roles
413 sites
185 downloads
20 fans

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 anymore.

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.

Screenshots

Screenshot #0

Contributors

Picture of Ulm University
Ulm University (Lead maintainer)
Picture of Alexander Bias
Alexander Bias: Developer
Picture of Bence Laky
Bence Laky: Initial Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of David Mudrák
    Fri, 5 Feb 2016, 12:54 AM

    Hi Alexander. Thanks for sharing this plugin with the community. Personally, I tend to consider setting availability this way a bit unnatural as I would expect that local permission overrides should be used instead. But I can understand that for many teachers (who are already familiar with the concept of availability restrictions) this way is actually more obvious. So yes, it can be useful in certain situations.

    Thanks for fixing some coding style issues reported above. I am happy to approve this plugin now. You are cleared to land. Welcome to the Plugins directory!

  • Picture of Alexander Bias
    Fri, 5 Feb 2016, 4:07 AM
    Hi David,

    just some more thoughts about your comment:
    I basically agree with you that local permission override might be Moodle core's tool to achieve the goal of this plugin, but the interface of the local permission override is far too complicated for this relatively simple use case and allowing teachers to locally override permissions gives them much more power than needed for this use case. That's why we built this small tool smile

    Thanks,
    Alex
  • Picture of Iñigo Zendegi Urzelai
    Fri, 30 Sep 2016, 4:57 PM
    Hi,

    I've just discovered this plugin and it does just what I was looking for!

    BTW, I found a case where the override permission cannot replace this: if you want to display a topic only to a certain role you can add a condition to that topic, but AFAIK there is no way to override permissions at a topic level so it can't be done that way.

    Thanks!
  • Picture of Alexander Bias
    Fri, 30 Sep 2016, 5:50 PM
    Thanks, Iñigo, for your comment.

    Yes, you probably could achieve the same goal to restrict an activity to a certain role by override permissions on this activity, but this is exactly why we created this plugin: We don't want our teachers to fiddle with permission overrides, they should just be able to add a condition which defines to which role they want to restrict the activity.

    Thanks,
    Alex
  • Picture of Ernani da Silva
    Sat, 20 May 2017, 6:13 AM
    I installed the plugin, I activated the plugin and now I try to configure the activity.
    I want the activity to be available only after a grade is> 7.
    Apparently, all right. But the activity does not appear for the student
  • Picture of Ernani da Silva
    Sat, 20 May 2017, 6:51 AM
    Any help?
  • Picture of Ernani da Silva
    Sat, 20 May 2017, 8:46 AM
    It is fixed.
Please login to post comments