]> git.mjollnir.org Git - moodle.git/commitdiff
Correct logic for stopping people using guest access from doing quizzes. Merged from...
authortjhunt <tjhunt>
Wed, 28 Feb 2007 11:34:50 +0000 (11:34 +0000)
committertjhunt <tjhunt>
Wed, 28 Feb 2007 11:34:50 +0000 (11:34 +0000)
mod/quiz/attempt.php
mod/quiz/view.php

index 960f172765dad77e86db900392ccee350b1e02bc..cdbd50184f6827268d59c01d5b4a54ade11f3d81 100644 (file)
     }
 
 /// Check availability
-    if (isguest()) {
+    if (isguestuser()) {
         print_heading(get_string('guestsno', 'quiz'));
         if (empty($popup)) {
             print_footer($course);
index 1c26656fcad56564711b74035125474c5335abad..82cd59f2805cf8141d1c46c1d5ddb6357a899195 100644 (file)
     //
     // 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);