From: moodler Date: Tue, 6 May 2003 03:02:58 +0000 (+0000) Subject: Hide admin links (eg grades) from guest accounts X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fce1ce13c85a9771f7bbaf0dbab85bd2432c7429;p=moodle.git Hide admin links (eg grades) from guest accounts --- 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";