MDL-13221 - doing wrong capability check for hidden activites. But we

don't need it at all as require_login() with the $cm argument does the
check for us
This commit is contained in:
poltawski
2008-01-30 20:42:41 +00:00
parent 8bb3fac17c
commit fdf09b28c8
-4
View File
@@ -70,10 +70,6 @@
print_header($pagetitle, $course->fullname, $navigation,
'', '', true, update_module_button($cm->id, $course->id, $strscorm), navmenu($course, $cm));
if (empty($cm->visible) and !has_capability('moodle/course:manageactivities', $context)) {
notice(get_string("activityiscurrentlyhidden"));
}
if (has_capability('moodle/course:manageactivities', $context)) {
$trackedusers = scorm_get_count_users($scorm->id, $cm->groupingid);