1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-17 22:45:54 +02:00

MDL-29019 enrol - fix a typo

This commit is contained in:
Sun Zhigang 2011-08-20 11:24:04 +08:00 committed by Eloy Lafuente (stronk7)
parent f622fbef7f
commit c03ae03383

@ -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