Removed check for student/teacher on submit and replaced with check for (not)

guest, as (a) it didn't stop guests and (b) it broke the studentview mode
This commit is contained in:
thepurpleblob 2005-09-20 09:22:06 +00:00
parent 132ba6df91
commit ac04332685

View file

@ -220,7 +220,7 @@
echo "<center>";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />";
if (isstudent($course->id) or isteacher($course->id, 0)) {
if (!isguest()) {
echo "<input type=\"submit\" value=\"".get_string("savemychoice","choice")."\" />";
} else {
print_string('havetologin', 'choice');