Restriction by enrolment method
Maintained by
Elearnity Team
Moodle availability plugin which lets users restrict resources, activities and sections based on enrolment methods
Comments
Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.
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
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
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?
yourmoodle***/availability/condition/enrolmentmethod/classes/condition.php
line 124:
$name = self::description_format_string($enrolmentmethodnames[$this->enrolmentmethodid]);
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.
The plugin is not working with Moodle version 4.0.4. It broke the access restrictions area and only showed plain text.