mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-56336 core_message: fix WS exception when 'forcepasswordchange' set
This commit is contained in:
parent
963ba88970
commit
fd9a64a302
@ -34,7 +34,8 @@ function message_popup_render_navbar_output(\renderer_base $renderer) {
|
||||
global $USER, $DB, $CFG;
|
||||
|
||||
// Early bail out conditions.
|
||||
if (!isloggedin() || isguestuser() || user_not_fully_set_up($USER)) {
|
||||
if (!isloggedin() || isguestuser() || user_not_fully_set_up($USER) ||
|
||||
get_user_preferences('auth_forcepasswordchange')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user