MDL-53700 competency: Migrate capabilities to core

This commit is contained in:
Frederic Massart 2016-04-04 14:49:50 +08:00
parent 1f7699533c
commit b90e2205b4
42 changed files with 791 additions and 821 deletions

View file

@ -35,7 +35,7 @@ $context = $template->get_context();
$canreadtemplate = $template->can_read();
$canmanagetemplate = $template->can_manage();
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.