Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-10975

enrol_database_sync.php will run even if the plugin is disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9, 2.0
    • Component/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      The /enrol/database/enrol_database_sync.php file will run and modify user enrolments even if the plugin has been disabled within Moodle Administration.

      Adding code like this:
      if (!is_enabled_enrol('database')) {
      echo "Plugin not enabled!";
      die;
      }

      around line 18 should fix this issue.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            bmacdonald Braden MacDonald
            Tester:
            Nobody
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08