Correct logic for stopping people using guest access from doing quizzes. Merged from MOODLE_18_STABLE.

This commit is contained in:
tjhunt
2007-02-28 11:34:50 +00:00
parent 862c219ae9
commit 645dff1cf7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -108,7 +108,7 @@
}
/// Check availability
if (isguest()) {
if (isguestuser()) {
print_heading(get_string('guestsno', 'quiz'));
if (empty($popup)) {
print_footer($course);
+1 -1
View File
@@ -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);