mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +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)
|
||||
&& $CFG->sitepolicyhandler == 'tool_policy'
|
||||
&& empty($USER->policyagreed)
|
||||
&& isguestuser()) {
|
||||
&& (isguestuser() || !isloggedin())) {
|
||||
$output = $PAGE->get_renderer('tool_policy');
|
||||
$page = new \tool_policy\output\guestconsent();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue