From: poltawski Date: Wed, 30 Jan 2008 20:42:41 +0000 (+0000) Subject: MDL-13221 - doing wrong capability check for hidden activites. But we X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fdf09b28c8da9adca923cda46d1183c04035bec8;p=moodle.git 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 --- diff --git a/mod/scorm/view.php b/mod/scorm/view.php index db9ec88afb..ffa1449c2d 100755 --- a/mod/scorm/view.php +++ b/mod/scorm/view.php @@ -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);