Skip to content

Commit

Permalink
Security fix for grading Essays. Mentioned in MDL-6477
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-nielsen committed Sep 8, 2006
1 parent a12743a commit 9f81189
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mod/lesson/view.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@


require_login($course->id, false, $cm); require_login($course->id, false, $cm);


switch ($action) {
case 'essayview':
case 'essaygrade':
case 'updategrade':
case 'emailessay':
if (!isteacheredit($course->id)) {
error('You must be a teacher with editing rights to view this page');
}
break;
}

/// Print the page header /// Print the page header


if ($course->category) { if ($course->category) {
Expand Down

0 comments on commit 9f81189

Please sign in to comment.