Browse files

Merge branch 'MDL-30722_forum_unsubscribe_22' of git://github.com/and…

…yjdavis/moodle into MOODLE_22_STABLE
  • Loading branch information...
2 parents 6fe3c39 + 35888ee commit 76456cf5f247a75715317bba3bc6a24e6253a94b @stronk7 stronk7 committed Feb 8, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/forum/unsubscribeall.php
View
4 mod/forum/unsubscribeall.php
@@ -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.'/';

0 comments on commit 76456cf

Please sign in to comment.