MDL-62796 tool_policy: show popup for users who are not logged in

This commit is contained in:
Marina Glancy
2018-06-26 13:24:44 +08:00
parent 6153be6850
commit e2029b8387
+1 -1
View File
@@ -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();