MDL-49566 notes: Notes link should not show up for guests

This commit is contained in:
Ankit Agarwal
2015-12-29 17:43:02 +08:00
committed by Mark Nelson
parent ebc7b73150
commit 47e5ed8e30
+5
View File
@@ -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)) {