Restriction by enrolment method

Maintained by Elearnity Team
Moodle availability plugin which lets users restrict resources, activities and sections based on enrolment methods
Price option: Free

Supports Moodle 3.11-5.0 See all versions
Latest release: 1 year ago
Installations: 203
Downloads (last 90 days): 75

Frankenstyle name: availability_enrolmentmethod

Comments

Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.

Hi, Thibault
We've just hit that issue with guest access, but the plugin seems to work well with other enrolment methods, so I've just opened this issue in the Github repo: https://github.com/elearnity/moodle-availability_enrolmentmethod/issues/3
Hi. Is there a known problem with Guest access enrolment detection? It does not seem to work either on 4.x or 5.x.
Our use case is to display certain activities only for guest users, but depsite setting up the restriction, they are never shown to guests. Thanks
"Restriction by enrolment method" was suggested for an application I need:
I want to set up a course that has a few sections for free, then requires payment for the remaining sections.
In practice, I want one enrollment method to only work for the first few sections of a course, and another enrollment method to work for the entire course.
Is this possible with "Restriction by enrolment method". Any hints on implementing it for this purpose?
also maybe you need comment this linr:
yourmoodle***/availability/condition/enrolmentmethod/classes/condition.php
line 124:
$name = self::description_format_string($enrolmentmethodnames[$this->enrolmentmethodid]);
to resolve the problem of this plugin (broken access restrictions area) you must copy content of
yourmoodle***/availability/condition/enrolmentmethod/yui/build/moodle-availability_enrolmentmethod-form/moodle-availability_enrolmentmethod-form.js
to
yourmoodle***/availability/condition/enrolmentmethod/yui/build/moodle-availability_enrolmentmethod-form/moodle-availability_enrolmentmethod-form-min.js
the minified js has some problem.
Hi Jorge,
The plugin is not working with Moodle version 4.0.4. It broke the access restrictions area and only showed plain text.
Approval issue created: CONTRIB-9031