Commit 0594336d authored by Daniel Neis Araujo's avatar Daniel Neis Araujo Committed by Daniel Neis Araujo
Browse files

MDL-46509 enrol: fix usage of incorrect capability check

parent 85b030cc
......@@ -108,7 +108,7 @@ class enrol_ldap_plugin extends enrol_plugin {
*/
public function can_delete_instance($instance) {
$context = context_course::instance($instance->courseid);
if (!has_capability('enrol/ldap:config', $context)) {
if (!has_capability('enrol/ldap:manage', $context)) {
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment