mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-55851 core: fixed AJAX error when user not set up
This commit is contained in:
parent
0b19d04836
commit
3f4f5d3bd2
@ -3202,7 +3202,7 @@ EOD;
|
||||
|
||||
$processor = $DB->get_record('message_processors', array('name' => 'popup'));
|
||||
|
||||
if (isloggedin() && $processor->enabled) {
|
||||
if (isloggedin() && $processor->enabled && !user_not_fully_set_up($USER)) {
|
||||
$context = [
|
||||
'userid' => $USER->id,
|
||||
'urls' => [
|
||||
@ -3223,7 +3223,7 @@ EOD;
|
||||
public function message_menu() {
|
||||
global $USER;
|
||||
|
||||
if (isloggedin()) {
|
||||
if (isloggedin() && !user_not_fully_set_up($USER)) {
|
||||
$context = [
|
||||
'userid' => $USER->id,
|
||||
'urls' => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user