mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 22:15:24 +02:00
MDL-67016 profile: current user should see his own courses
This commit is contained in:
parent
d7699706da
commit
a009aad404
@ -227,7 +227,7 @@ function core_myprofile_navigation(core_user\output\myprofile\tree $tree, $user,
|
||||
$tree->add_node($node);
|
||||
}
|
||||
|
||||
if (!isset($hiddenfields['mycourses'])) {
|
||||
if ($iscurrentuser || !isset($hiddenfields['mycourses'])) {
|
||||
$showallcourses = optional_param('showallcourses', 0, PARAM_INT);
|
||||
if ($mycourses = enrol_get_all_users_courses($user->id, true, null)) {
|
||||
$shown = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user