mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
User must be logged in (avoids notices)
This commit is contained in:
parent
c5eb407be4
commit
2ac8da76b6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user