mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +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,7 +60,7 @@ function tool_lp_myprofile_navigation(core_user\output\myprofile\tree $tree, $us
|
|||
global $USER;
|
||||
|
||||
$context = context_user::instance($USER->id);
|
||||
if (!$iscurrentuser && !has_capability('tool/lp:planviewall', $context)) {
|
||||
if (!$iscurrentuser && !has_capability('tool/lp:planview', $context)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue