Skip to content

Commit

Permalink
MDL-30722 mod_forum: prevented users being auto-logged in as guest wh…
Browse files Browse the repository at this point in the history
…en they access /mod/forum/unsubscribeall.php
  • Loading branch information
andyjdavis committed Jan 23, 2012
1 parent 1aff7bb commit 9e74931
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/forum/unsubscribeall.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
$confirm = optional_param('confirm', false, PARAM_BOOL); $confirm = optional_param('confirm', false, PARAM_BOOL);


$PAGE->set_url('/mod/forum/unsubscribeall.php'); $PAGE->set_url('/mod/forum/unsubscribeall.php');
$PAGE->set_context(get_context_instance(CONTEXT_USER, $USER->id));


require_login(); // Do not autologin guest. Only proper users can have forum subscriptions.
require_login(null, false);


$return = $CFG->wwwroot.'/'; $return = $CFG->wwwroot.'/';


Expand Down

0 comments on commit 9e74931

Please sign in to comment.