mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
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:
parent
132ba6df91
commit
ac04332685
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue