MDL-21655 fixed regression which prevented guests to enter access key

This commit is contained in:
Petr Skoda 2010-05-03 19:50:57 +00:00
parent 1369948cc9
commit 3e29781d11

View File

@ -38,7 +38,7 @@ if ($loginasguest !== 0) {
}
$PAGE->set_url($url);
if (!isloggedin() or isguestuser()) {
if (!isloggedin()) {
// do not use require_login here because we are usually comming from it
redirect(get_login_url());
}