mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 11:26:41 +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
|
@ -37,7 +37,7 @@ $canmanagetemplate = $template->can_manage();
|
|||
$duedatereached = $template->get_duedate() > 0 && $template->get_duedate() < time();
|
||||
|
||||
if (!$canreadtemplate) {
|
||||
throw new required_capability_exception($context, 'tool/lp:templateview', 'nopermissions', '');
|
||||
throw new required_capability_exception($context, 'moodle/competency:templateview', 'nopermissions', '');
|
||||
}
|
||||
|
||||
// Set up the page.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue