Permalink
Browse files

MDL-27036 AICC HACP handling - add missing check for correct user wit…

…h has_capability.
  • Loading branch information...
1 parent 364fe13 commit 9a68ff24d2ee13e5bb0c46d17555704c96161c6c @danmarsden danmarsden committed with Sam Hemelryk Nov 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/aicc.php
View
@@ -195,7 +195,7 @@
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)) {

0 comments on commit 9a68ff2

Please sign in to comment.