From: moodler Date: Wed, 4 Feb 2004 12:52:31 +0000 (+0000) Subject: Restricted users can't enrol in other courses X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f3436de6a762da66ac0ba84891f09e32550d19e0;p=moodle.git Restricted users can't enrol in other courses --- diff --git a/course/enrol.php b/course/enrol.php index 6f7fb62b84..b2fff360e5 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