Skip to content

Commit

Permalink
MDL-20830 workshop requires sesskey when clearing the late submission…
Browse files Browse the repository at this point in the history
… flag
  • Loading branch information
mudrd8mz committed Nov 12, 2009
1 parent a102b48 commit 8e3264e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/workshop/submissions.php
Expand Up @@ -99,6 +99,7 @@
elseif ($action == 'adminclearlate' ) {

require_capability('mod/workshop:manage', $context);
require_sesskey();
if (empty($sid)) {
error("Admin clear late flag: submission id missing");
}
Expand Down Expand Up @@ -178,7 +179,7 @@
}

notice_yesno(get_string("clearlateflag","workshop")."?",
"submissions.php?action=adminclearlate&id=$cm->id&sid=$sid",
"submissions.php?sesskey=" . sesskey() . "&action=adminclearlate&id=$cm->id&sid={$submission->id}",
"view.php?id=$cm->id");
}

Expand Down

0 comments on commit 8e3264e

Please sign in to comment.