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