]> git.mjollnir.org Git - moodle.git/commitdiff
Prevent guests from taking surveys
authormoodler <moodler>
Tue, 6 May 2003 03:06:06 +0000 (03:06 +0000)
committermoodler <moodler>
Tue, 6 May 2003 03:06:06 +0000 (03:06 +0000)
mod/survey/view.php

index 12091a6e9c5d15ae706dbaf9fdaeb0fc5e89e262..26f95ad0b5f8faabec94f8ac94109d62f7667eb5 100644 (file)
               get_string("viewsurveyresponses", "survey", $numusers)."</A></P>";
     }
 
+    if (isguest()) {
+        notify(get_string("guestsnotallowed", "survey"));
+    }
+
 
 //  Check the survey hasn't already been filled out.
 
         }
     }
 
+    if (isguest()) {
+        echo "</form>";
+        print_footer($course);
+        exit;
+    }
+
 ?>
 
 <CENTER>