mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Checked in something that hadn't been
This commit is contained in:
parent
c7029edf84
commit
6d8f47d64f
1 changed files with 5 additions and 0 deletions
|
@ -749,6 +749,11 @@ function require_login($courseid=0, $autologinguest=true) {
|
|||
}
|
||||
}
|
||||
|
||||
// Make sure the USER has a sesskey set up. Used for checking script parameters.
|
||||
if (empty($USER->sesskey)) {
|
||||
$USER->sesskey = random_string(10);
|
||||
}
|
||||
|
||||
// Next, check if the user can be in a particular course
|
||||
if ($courseid) {
|
||||
if ($courseid == SITEID) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue