mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-13354 - wrong capability checked for view report link
merged from MOODLE_19_STABLE
This commit is contained in:
parent
b08261a100
commit
dfe2fbc665
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user