Merge branch 'MDL-38289-master-int' of git://github.com/FMCorz/moodle

This commit is contained in:
Damyon Wiese
2013-05-09 10:22:16 +08:00
+1 -1
View File
@@ -1324,7 +1324,7 @@ abstract class condition_info_base {
}
$iscurrentuser = $USER->id == $userid;
if (isguestuser($userid)) {
if (isguestuser($userid) || ($iscurrentuser && !isloggedin())) {
// Must be logged in and can't be the guest. (this should never happen anyway)
return false;
}