mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
Merge branch 'MDL-49906-master' of git://github.com/lameze/moodle
This commit is contained in:
commit
62fc688bac
2 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ require_once(__DIR__ . '/lib.php');
|
||||||
// Only real logged in users.
|
// Only real logged in users.
|
||||||
require_login(null, false, null, true, true);
|
require_login(null, false, null, true, true);
|
||||||
if (isguestuser()) {
|
if (isguestuser()) {
|
||||||
throw new require_login_exception();
|
throw new require_login_exception('Guests are not allowed here.');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Messaging needs to be enabled.
|
// Messaging needs to be enabled.
|
||||||
|
|
|
@ -27,7 +27,7 @@ require_once($CFG->libdir . '/navigationlib.php');
|
||||||
|
|
||||||
require_login(null, false);
|
require_login(null, false);
|
||||||
if (isguestuser()) {
|
if (isguestuser()) {
|
||||||
throw new require_login_exception();
|
throw new require_login_exception('Guests are not allowed here.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$userid = optional_param('userid', $USER->id, PARAM_INT);
|
$userid = optional_param('userid', $USER->id, PARAM_INT);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue