mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-53700 competency: Migrate capabilities to core
This commit is contained in:
parent
1f7699533c
commit
b90e2205b4
42 changed files with 791 additions and 821 deletions
|
@ -438,7 +438,7 @@ function tool_lp_coursemodule_standard_elements($formwrapper, $mform) {
|
|||
|
||||
if (!\tool_lp\api::is_enabled()) {
|
||||
return;
|
||||
} else if (!has_capability('tool/lp:coursecompetencymanage', $formwrapper->get_context())) {
|
||||
} else if (!has_capability('moodle/competency:coursecompetencymanage', $formwrapper->get_context())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue