Merge branch 'wip-MDL-50678-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
@@ -136,14 +136,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) ) {
|
||||
|
||||
Reference in New Issue
Block a user