MDL-25805 Roles propagated ugly hack for parent seeing child activities into navigati...
[moodle.git] / user / view.php
index c77ba7c..ea56d61 100644 (file)
@@ -80,6 +80,7 @@ if (!$currentuser
     //       please note this is just a guess!
     require_login();
     $isparent = true;
+    $PAGE->navigation->set_userid_for_parent_nav_hack($id);
 } else {
     // normal course
     require_login($course);