MDL-13354 - wrong capability checked for view report link

merged from MOODLE_19_STABLE
This commit is contained in:
poltawski 2008-02-08 10:00:13 +00:00
parent b08261a100
commit dfe2fbc665

View File

@ -70,7 +70,7 @@
print_header($pagetitle, $course->fullname, $navigation,
'', '', true, update_module_button($cm->id, $course->id, $strscorm), navmenu($course, $cm));
if (has_capability('moodle/course:manageactivities', $context)) {
if (has_capability('mod/scorm:viewreport', $context)) {
$trackedusers = scorm_get_count_users($scorm->id, $cm->groupingid);
if ($trackedusers > 0) {