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 31, 2012
1 parent 216f6d8 commit 088cc24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/forum/unsubscribeall.php
Expand Up @@ -27,8 +27,10 @@
$confirm = optional_param('confirm', false, PARAM_BOOL);

$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.'/';

Expand Down

0 comments on commit 088cc24

Please sign in to comment.