mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 11:56: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
|
@ -41,7 +41,7 @@ if (!empty($id)) {
|
|||
// We check that we have the permission to edit this framework, in its own context.
|
||||
require_login(0, false);
|
||||
\tool_lp\api::require_enabled();
|
||||
require_capability('tool/lp:templatemanage', $context);
|
||||
require_capability('moodle/competency:templatemanage', $context);
|
||||
|
||||
// We keep the original context in the URLs, so that we remain in the same context.
|
||||
$url = new moodle_url("/admin/tool/lp/edittemplate.php", [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue