Permalink
Browse files
MDL-26680: Reset my moodle page - add sesskey check.
- Loading branch information...
Showing
with
1 addition
and
0 deletions.
-
+1
−0
my/index.php
|
@@ -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');
|
|
|
}
|
|
|
0 comments on commit
ff77d60