Merge branch 'wip-MDL-50678-m29' of git://github.com/marinaglancy/moodle into MOODLE_29_STABLE

This commit is contained in:
Dan Poltawski
2015-07-20 13:54:02 +01:00
-8
View File
@@ -116,14 +116,6 @@ if ( $show ) {
$hook = $show;
$show = '';
}
/// Processing standard security processes
if ($course->id != SITEID) {
require_login($course);
}
if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', $context)) {
echo $OUTPUT->header();
notice(get_string("activityiscurrentlyhidden"));
}
/// stablishing flag variables
if ( $sortorder = strtolower($sortorder) ) {