MDL-38096 fix availability of enrol button

This commit is contained in:
Petr Škoda 2013-02-27 07:58:26 +01:00 committed by Damyon Wiese
parent 520fee918e
commit 506338d5de

View File

@ -68,7 +68,7 @@ class enrol_manual_plugin extends enrol_plugin {
$context = context_course::instance($instance->courseid, MUST_EXIST);
if (!has_capability('enrol/manual:enrol', $context) and !has_capability('enrol/manual:unenrol', $context)) {
if (!has_capability('enrol/manual:enrol', $context)) {
// Note: manage capability not used here because it is used for editing
// of existing enrolments which is not possible here.
return NULL;