diff --git a/course/enrol.php b/course/enrol.php index 6f7fb62b842..b2fff360e52 100644 --- a/course/enrol.php +++ b/course/enrol.php @@ -19,6 +19,7 @@ error("Could not find a site!"); } + check_for_restricted_user($USER->username); /// Check the submitted enrollment key if there is one