availability:activeenrol

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 availability_enrolmentmethod, adding precise control of the enrolment state in the access control.

Guides

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)

Back to plugins index - Back to catalogue index

availability/activeenrol.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki