mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-53483 tool_lp: Normalise the names of capabilities
This commit is contained in:
parent
a4f1b030f2
commit
44e8cba48e
20 changed files with 202 additions and 170 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue