Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…yjdavis/moodle into MOODLE_22_STABLE
  • Loading branch information...
commit 76456cf5f247a75715317bba3bc6a24e6253a94b 2 parents 6fe3c39 + 35888ee
@stronk7 stronk7 authored
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.'/';
Please sign in to comment.
Something went wrong with that request. Please try again.