MDL-53483 tool_lp: Normalise the names of capabilities

This commit is contained in:
Serge Gauthier 2016-03-24 10:52:05 -04:00 committed by Frederic Massart
parent a4f1b030f2
commit 44e8cba48e
20 changed files with 202 additions and 170 deletions

View file

@ -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:templateread', 'nopermissions', '');
throw new required_capability_exception($context, 'tool/lp:templateview', 'nopermissions', '');
}
// Set up the page.