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:
+1
-1
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user