Skip to content

Commit

Permalink
Merge branch 'MDL-58273-master-ldapenrol' of git://github.com/mudrd8m…
Browse files Browse the repository at this point in the history
…z/moodle
  • Loading branch information
danpoltawski committed Mar 20, 2017
2 parents 2ddcf27 + 935f428 commit d9b094a
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 d9b094a

Please sign in to comment.