Skip to content
Browse files

MDL-29019 enrol - fix a typo

  • Loading branch information...
1 parent f622fbe commit c03ae03383936f068652ff2ea02b92991dbb581f @sunner sunner committed with stronk7 Aug 20, 2011
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

0 comments on commit c03ae03

Please sign in to comment.
Something went wrong with that request. Please try again.