diff --git a/notes/lib.php b/notes/lib.php index a443a4b4c77..b21f1f6514e 100644 --- a/notes/lib.php +++ b/notes/lib.php @@ -386,6 +386,11 @@ function core_notes_myprofile_navigation(core_user\output\myprofile\tree $tree, return false; } + if (isguestuser($user)) { + // No notes for guest users. + return false; + } + $url = new moodle_url("/notes/index.php", array('user' => $user->id)); $title = get_string('notes', 'core_notes'); if (empty($course)) {