mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-38096 fix availability of enrol button
This commit is contained in:
parent
520fee918e
commit
506338d5de
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user