Skip to content

Commit

Permalink
MDL-26680: Reset my moodle page - add sesskey check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Jan 22, 2014
1 parent ce3b8b0 commit ff77d60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions my/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
if ($PAGE->user_allowed_editing()) {
if ($reset !== null) {
if (!is_null($userid)) {
require_sesskey();
if(!$currentpage = my_reset_page($userid, MY_PAGE_PRIVATE)){
print_error('reseterror', 'my');
}
Expand Down

0 comments on commit ff77d60

Please sign in to comment.