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

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Enrolments
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10