mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-69868 h5pactivity: Prevent breaking $USER when seeing
attempt report.
This commit is contained in:
parent
c8d33eb9ce
commit
932e8ea7a3
@ -387,7 +387,7 @@ class manager {
|
||||
if ($this->can_view_all_attempts()) {
|
||||
$user = core_user::get_user($userid);
|
||||
} else if ($this->can_view_own_attempts()) {
|
||||
$user = $USER;
|
||||
$user = core_user::get_user($USER->id);
|
||||
if ($userid && $user->id != $userid) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user