Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-30722_forum_unsubscribe_22' of git://…

…yjdavis/moodle into MOODLE_22_STABLE
  • Loading branch information...
commit 76456cf5f247a75715317bba3bc6a24e6253a94b 2 parents 6fe3c39 + 35888ee
Eloy Lafuente (stronk7) stronk7 authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/forum/unsubscribeall.php
4 mod/forum/unsubscribeall.php
@@ -27,8 +27,10 @@
$confirm = optional_param('confirm', false, PARAM_BOOL);
+$PAGE->set_context(get_context_instance(CONTEXT_USER, $USER->id));
+// 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.