mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
MDL-62796 tool_policy: show popup for users who are not logged in
This commit is contained in:
parent
6153be6850
commit
e2029b8387
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ function tool_policy_before_standard_html_head() {
|
||||||
if (!empty($CFG->sitepolicyhandler)
|
if (!empty($CFG->sitepolicyhandler)
|
||||||
&& $CFG->sitepolicyhandler == 'tool_policy'
|
&& $CFG->sitepolicyhandler == 'tool_policy'
|
||||||
&& empty($USER->policyagreed)
|
&& empty($USER->policyagreed)
|
||||||
&& isguestuser()) {
|
&& (isguestuser() || !isloggedin())) {
|
||||||
$output = $PAGE->get_renderer('tool_policy');
|
$output = $PAGE->get_renderer('tool_policy');
|
||||||
$page = new \tool_policy\output\guestconsent();
|
$page = new \tool_policy\output\guestconsent();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue