makes autologinguest possible at site level
This commit is contained in:
+1
-1
@@ -1338,7 +1338,7 @@ function require_login($courseid=0, $autologinguest=true, $cm=null) {
|
||||
$SESSION->fromurl = $_SERVER['HTTP_REFERER'];
|
||||
}
|
||||
$USER = NULL;
|
||||
if ($autologinguest and $CFG->autologinguests and $courseid and get_field('course','guest','id',$courseid)) {
|
||||
if ($autologinguest and $CFG->autologinguests and $courseid and ($courseid == SITEID or get_field('course','guest','id',$courseid)) ) {
|
||||
$loginguest = '?loginguest=true';
|
||||
} else {
|
||||
$loginguest = '';
|
||||
|
||||
Reference in New Issue
Block a user