mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
navigation MDL-22425 Fixed current user being added to the users branch in the navigation when on the site page
This commit is contained in:
parent
0aa366ecdc
commit
25ad1f47d6
@ -965,7 +965,7 @@ class global_navigation extends navigation_node {
|
||||
|
||||
// Load for the current user
|
||||
$this->load_for_user();
|
||||
if ($this->page->context->contextlevel >= CONTEXT_COURSE) {
|
||||
if ($this->page->context->contextlevel >= CONTEXT_COURSE && $this->page->context->instanceid != SITEID) {
|
||||
$this->load_for_user(null, true);
|
||||
}
|
||||
// Load each extending user into the navigation.
|
||||
|
Loading…
x
Reference in New Issue
Block a user