mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-27036 AICC HACP handling - add missing check for correct user with has_capability.
This commit is contained in:
parent
364fe13b11
commit
9a68ff24d2
@ -195,7 +195,7 @@ if (!empty($command)) {
|
||||
if (! $cm = get_coursemodule_from_instance("scorm", $scorm->id, $scorm->course)) {
|
||||
echo "error=1\r\nerror_text=Unknown\r\n"; // No one must see this error message if not hacked
|
||||
}
|
||||
if (!empty($aiccdata) && has_capability('mod/scorm:savetrack', get_context_instance(CONTEXT_MODULE, $cm->id))) {
|
||||
if (!empty($aiccdata) && has_capability('mod/scorm:savetrack', get_context_instance(CONTEXT_MODULE, $cm->id), $aiccuser->id)) {
|
||||
$initlessonstatus = 'not attempted';
|
||||
$lessonstatus = 'not attempted';
|
||||
if (isset($scormsession->scorm_lessonstatus)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user