Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
216f6d8
)
MDL-30722 mod_forum: prevented users being auto-logged in as guest when they access...
author
Andrew Davis
<andrew@moodle.com>
Fri, 23 Dec 2011 05:28:08 +0000
(12:28 +0700)
committer
Andrew Davis
<andrew@moodle.com>
Tue, 31 Jan 2012 02:03:40 +0000
(09:03 +0700)
mod/forum/unsubscribeall.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/forum/unsubscribeall.php
b/mod/forum/unsubscribeall.php
index
4bf4aa2
..
a425c6b
100644
(file)
--- a/
mod/forum/unsubscribeall.php
+++ b/
mod/forum/unsubscribeall.php
@@
-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.'/';