From: moodler Date: Thu, 21 Feb 2008 06:10:17 +0000 (+0000) Subject: User must be logged in (avoids notices) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2ac8da76b65a136cca4be622913f321f0f72d8fb;p=moodle.git User must be logged in (avoids notices) --- diff --git a/calendar/lib.php b/calendar/lib.php index 703d88db9e..73b4a90c9d 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -1367,6 +1367,11 @@ function calendar_edit_event_allowed($event) { global $USER; + // Must be logged in + if (!isloggedin()) { + return false; + } + // can not be using guest account if ($USER->username == "guest") { return false;