mirror of
https://github.com/moodle/moodle.git
synced 2025-04-11 11:23:52 +02:00
MDL-62796 tool_policy: show popup for users who are not logged in
This commit is contained in:
parent
6153be6850
commit
e2029b8387
@ -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…
x
Reference in New Issue
Block a user