Merge branch 'MDL-56822-master' of git://github.com/cameron1729/moodle

This commit is contained in:
Andrew Nicols
2016-11-17 14:33:39 +08:00
+2 -1
View File
@@ -35,7 +35,8 @@ function message_popup_render_navbar_output(\renderer_base $renderer) {
// Early bail out conditions.
if (!isloggedin() || isguestuser() || user_not_fully_set_up($USER) ||
get_user_preferences('auth_forcepasswordchange')) {
get_user_preferences('auth_forcepasswordchange') ||
(!$USER->policyagreed && $CFG->sitepolicy)) {
return '';
}