mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
attempt to fix mnet jumping issue when already logged in as guest
This commit is contained in:
parent
943630292a
commit
4e56afdfb4
@ -26,7 +26,10 @@ if ($hostwwwroot !== '') $url->param('hostwwwroot', $hostwwwroot);
|
||||
if ($wantsurl !== '') $url->param('wantsurl', $wantsurl);
|
||||
$PAGE->set_url($url);
|
||||
|
||||
require_login(SITEID,false);
|
||||
if (!isloggedin() or isguestuser()) {
|
||||
$SESSION->wantsurl = $PAGE->url->out(false);
|
||||
redirect(get_login_url());
|
||||
}
|
||||
|
||||
if (!is_enabled_auth('mnet')) {
|
||||
print_error('mnetdisable');
|
||||
|
Loading…
x
Reference in New Issue
Block a user