MDL-27036 AICC HACP handling - add missing check for correct user with has_capability.
This commit is contained in:
committed by
Sam Hemelryk
parent
364fe13b11
commit
9a68ff24d2
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user