MDL-24316 "reenabling" access to stealth activities

This commit is contained in:
Petr Skoda
2010-10-13 18:51:37 +00:00
parent f53f73ca61
commit 2a62743c40
2 changed files with 51 additions and 11 deletions
+1 -2
View File
@@ -500,8 +500,7 @@ if ($component === 'blog') {
if ($course->numsections < $section->section) {
if (!has_capability('moodle/course:update', $context)) {
// disable access to invisible sections if can not edit course
// this is going to break some ugly hacks, but is necessary
// block access to unavailable sections if can not edit course
send_file_not_found();
}
}