From fad5ec9b5af6d993c7cc0eae4258121bcc4c0e97 Mon Sep 17 00:00:00 2001 From: Sun Zhigang Date: Sat, 20 Aug 2011 11:24:04 +0800 Subject: [PATCH] MDL-29019 enrol - fix a typo --- enrol/self/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/self/lib.php b/enrol/self/lib.php index 4ca0beb9244..d86d0cb6b8d 100644 --- a/enrol/self/lib.php +++ b/enrol/self/lib.php @@ -153,7 +153,7 @@ class enrol_self_plugin extends enrol_plugin { public function get_newinstance_link($courseid) { $context = get_context_instance(CONTEXT_COURSE, $courseid, MUST_EXIST); - if (!has_capability('moodle/course:enrolconfig', $context) or !has_capability('enrol/manual:config', $context)) { + if (!has_capability('moodle/course:enrolconfig', $context) or !has_capability('enrol/self:config', $context)) { return NULL; } // multiple instances supported - different roles with different password