mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
MDL-30722 mod_forum: prevented users being auto-logged in as guest when they access /mod/forum/unsubscribeall.php
This commit is contained in:
parent
216f6d8e9d
commit
088cc24ccd
@ -27,8 +27,10 @@ require_once("lib.php");
|
||||
$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.'/';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user