Merge branch 'wip-MDL-62796-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user