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

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