From fce1ce13c85a9771f7bbaf0dbab85bd2432c7429 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 6 May 2003 03:02:58 +0000 Subject: [PATCH] Hide admin links (eg grades) from guest accounts --- course/lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/course/lib.php b/course/lib.php index 820e5b50c4..939972456c 100644 --- a/course/lib.php +++ b/course/lib.php @@ -760,6 +760,9 @@ function print_admin_links ($siteid, $width=180) { function print_course_admin_links($course, $width=180) { global $USER, $CFG, $THEME; + if (isguest()) { + return true; + } if (empty($THEME->custompix)) { $pixpath = "$CFG->wwwroot/pix"; $modpixpath = "$CFG->wwwroot/mod"; -- 2.39.5