mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-51645 tool_lp: Rename the plan capabilities
This commit is contained in:
parent
3a4c71dc22
commit
53084abb75
10 changed files with 45 additions and 45 deletions
|
@ -60,14 +60,14 @@ $capabilities = array(
|
|||
),
|
||||
'clonepermissionsfrom' => 'moodle/block:view'
|
||||
),
|
||||
'tool/lp:plancreatedraft' => array(
|
||||
'tool/lp:plancreateown' => array(
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_SYSTEM,
|
||||
'contextlevel' => CONTEXT_USER,
|
||||
'archetypes' => array(
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/site:config'
|
||||
),
|
||||
'tool/lp:planmanageall' => array(
|
||||
'tool/lp:planmanage' => array(
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_SYSTEM,
|
||||
'archetypes' => array(
|
||||
|
@ -81,7 +81,7 @@ $capabilities = array(
|
|||
),
|
||||
'clonepermissionsfrom' => 'moodle/site:config'
|
||||
),
|
||||
'tool/lp:planviewall' => array(
|
||||
'tool/lp:planview' => array(
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_USER,
|
||||
'archetypes' => array(
|
||||
|
|
|
@ -346,7 +346,7 @@ $functions = array(
|
|||
'classpath' => '',
|
||||
'description' => 'Creates a learning plan.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'tool/lp:planmanageall',
|
||||
'capabilities' => 'tool/lp:planmanage',
|
||||
),
|
||||
'tool_lp_update_plan' => array(
|
||||
'classname' => 'tool_lp\external',
|
||||
|
@ -354,7 +354,7 @@ $functions = array(
|
|||
'classpath' => '',
|
||||
'description' => 'Updates a learning plan.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'tool/lp:planmanageall',
|
||||
'capabilities' => 'tool/lp:planmanage',
|
||||
),
|
||||
'tool_lp_read_plan' => array(
|
||||
'classname' => 'tool_lp\external',
|
||||
|
@ -370,7 +370,7 @@ $functions = array(
|
|||
'classpath' => '',
|
||||
'description' => 'Delete a learning plan.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'tool/lp:planmanageall',
|
||||
'capabilities' => 'tool/lp:planmanage',
|
||||
),
|
||||
'tool_lp_data_for_plans_page' => array(
|
||||
'classname' => 'tool_lp\external',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue