mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-74181' of https://github.com/paulholden/moodle
This commit is contained in:
commit
3377bf10f7
2 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,7 @@ if (!empty($CFG->forceloginforprofiles)) {
|
||||||
require_login();
|
require_login();
|
||||||
if (isguestuser()) {
|
if (isguestuser()) {
|
||||||
$PAGE->set_context(context_system::instance());
|
$PAGE->set_context(context_system::instance());
|
||||||
|
$PAGE->has_secondary_navigation_setter(false);
|
||||||
echo $OUTPUT->header();
|
echo $OUTPUT->header();
|
||||||
echo $OUTPUT->confirm(get_string('guestcantaccessprofiles', 'error'),
|
echo $OUTPUT->confirm(get_string('guestcantaccessprofiles', 'error'),
|
||||||
get_login_url(),
|
get_login_url(),
|
||||||
|
|
|
@ -65,6 +65,7 @@ if (!empty($CFG->forceloginforprofiles)) {
|
||||||
|
|
||||||
// Guests do not have permissions to view anyone's profile if forceloginforprofiles is set.
|
// Guests do not have permissions to view anyone's profile if forceloginforprofiles is set.
|
||||||
if (isguestuser()) {
|
if (isguestuser()) {
|
||||||
|
$PAGE->has_secondary_navigation_setter(false);
|
||||||
echo $OUTPUT->header();
|
echo $OUTPUT->header();
|
||||||
echo $OUTPUT->confirm(get_string('guestcantaccessprofiles', 'error'),
|
echo $OUTPUT->confirm(get_string('guestcantaccessprofiles', 'error'),
|
||||||
get_login_url(),
|
get_login_url(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue