User must be logged in (avoids notices)

This commit is contained in:
moodler 2008-02-21 06:10:17 +00:00
parent c5eb407be4
commit 2ac8da76b6

View File

@ -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;