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

User newer can enrol themselves in metacourse!

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: None
    • Component/s: Enrolments
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE

      Description

      Index: course/enrol.php

      ===================================================================

      RCS file: /cvsroot/moodle/moodle/course/enrol.php,v

      retrieving revision 1.32

      diff -u -r1.32 enrol.php

      — course/enrol.php 16 May 2005 19:36:51 -0000 1.32

      +++ course/enrol.php 11 Sep 2005 18:10:36 -0000

      @@ -19,9 +19,14 @@

      error(Could not find a site!);

      }

      + // User newer can enrol themselves in metacourse! (dlnsk)

      + if ($course->metacourse)

      { + error('Only teacher can enrol you in this course!'); // will should be add to language file + }

      +

      check_for_restricted_user($USER->username);

      • $enrol = new enrolment_plugin();

      + $enrol = new enrolment_plugin();

      /// Refreshing enrolment data in the USER session

      $enrol->get_student_courses($USER);

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: