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 02e5cdbeb8366e876131a34389166d7db26c27c3 1 parent 029e7f5
@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.