Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-29019 enrol - fix a typo

  • Loading branch information...
commit c03ae03383936f068652ff2ea02b92991dbb581f 1 parent f622fbe
@sunner sunner authored stronk7 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  enrol/self/lib.php
View
2  enrol/self/lib.php
@@ -153,7 +153,7 @@ public function get_action_icons(stdClass $instance) {
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
Please sign in to comment.
Something went wrong with that request. Please try again.