Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-21782 Major 2.0 enrolments rewrite META
  3. MDL-23232

enrol UI ajax must explicitly ask each enrol plugin instance if manual enrol allowed

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.0
    • 2.0
    • Enrolments
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      At present the enrol ajax behind the UI uses $plugin->enrol_user($instance, $user->id, $roleid, $timestart, $timeend);

      This is very wrong, you must explicitly ask the plugin if it allows manual enrolments. At minimum you would not be allowed to unenrol, but it could create severe other problems or break synchronisation.

            samhemelryk Sam Hemelryk
            skodak Petr Skoda
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.