Skip to content

Commit

Permalink
MDL-58273 enrol_ldap: Fix the name of the capability
Browse files Browse the repository at this point in the history
This capability controls who can hide/show the enrolment instance.
  • Loading branch information
mudrd8mz committed Mar 15, 2017
1 parent 1034421 commit 935f428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/ldap/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function can_delete_instance($instance) {
*/
public function can_hide_show_instance($instance) {
$context = context_course::instance($instance->courseid);
return has_capability('enrol/ldap:config', $context);
return has_capability('enrol/ldap:manage', $context);
}

/**
Expand Down

0 comments on commit 935f428

Please sign in to comment.