mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
User must be logged in (avoids notices)
This commit is contained in:
parent
c5eb407be4
commit
2ac8da76b6
1 changed files with 5 additions and 0 deletions
|
@ -1367,6 +1367,11 @@ function calendar_edit_event_allowed($event) {
|
||||||
|
|
||||||
global $USER;
|
global $USER;
|
||||||
|
|
||||||
|
// Must be logged in
|
||||||
|
if (!isloggedin()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// can not be using guest account
|
// can not be using guest account
|
||||||
if ($USER->username == "guest") {
|
if ($USER->username == "guest") {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue