mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-46509 enrol: fix usage of incorrect capability check
This commit is contained in:
parent
85b030cc39
commit
0594336d92
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user