From: tjhunt Date: Wed, 28 Feb 2007 11:34:50 +0000 (+0000) Subject: Correct logic for stopping people using guest access from doing quizzes. Merged from... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=645dff1cf77d2c57eb6f8a5c9aa83fcbb9189550;p=moodle.git Correct logic for stopping people using guest access from doing quizzes. Merged from MOODLE_18_STABLE. --- diff --git a/mod/quiz/attempt.php b/mod/quiz/attempt.php index 960f172765..cdbd50184f 100644 --- a/mod/quiz/attempt.php +++ b/mod/quiz/attempt.php @@ -108,7 +108,7 @@ } /// Check availability - if (isguest()) { + if (isguestuser()) { print_heading(get_string('guestsno', 'quiz')); if (empty($popup)) { print_footer($course); diff --git a/mod/quiz/view.php b/mod/quiz/view.php index 1c26656fca..82cd59f280 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -137,7 +137,7 @@ // // So for courses that allow guest access, it is good to offer people an easy // way to log in at this point if they have got this far before logging in. - if (isguest()) { + if (isguestuser()) { $loginurl = $CFG->wwwroot.'/login/index.php'; if (!empty($CFG->loginhttps)) { $loginurl = str_replace('http:','https:', $loginurl);