{{ :blocks:logo-apl.png?nolink |}} ===== Availability condition: Active enrolment in the course ===== ==== Presentation ==== This plugin controls access (or not) to resources (sections, activities) depending on the presence of a user enrolment of a given enrolment method. It extends the community plugin [[https://moodle.org/plugins/availability_enrolmentmethod|availability_enrolmentmethod]], adding precise control of the enrolment state in the access control. ==== Guides ==== * [[:availability:activeenrol:Install|Installation guide]] * [[:availability:activeenrol:UserGuide|User guide]] * [[:availability:activeenrol:Technique|Technical guide]] ==== Features ==== * Adding an availability rule. * Choice of an enrolment method type that must be held. * Choice of the enrolment state: * **Any:** The presence of an enrolment, active or not, valid or not, grants (or denies) access * **Active:** Access is granted (or denied) only if the enrolment method is active in the course. * **Valid:** Access is granted (or denied) only if the enrolment method is active in the course AND the user's enrolment is valid (not suspended and within its validity dates). ====Technical sheet==== * **Component type:** Availability condition * **Name:** Active enrolment in the course (activeenrol) * **Technical name:** availability_activeenrol * **Functional family:** Automation * **Supported versions:** :M41: to :M53: * **Availability:** Stable * **Distribution:** Public ==== Builds ==== Note: a "Failing" status does not necessarily mean that the plugin does not work. This status reflects the result of automated tests checking the code against Moodle's strict standards. We are continuously working on bringing all supported plugins progressively into compliance with these development rules. ^ Branch ^ Continuous integration tests ^ | 405 | CI status | | 501 | CI status | ==== Credits ==== * Valéry Frémaux (valery.fremaux@gmail.com) ----- [[:plugins|Back to plugins index]] - [[:start|Back to catalogue index]]