Permalink
Browse files

MDL-12433: course/info - missing context

  • Loading branch information...
1 parent ea9af5b commit f52a0de1c5ef981b74b0293d977d0e9119061907 mattc-catalyst committed Dec 7, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/info.php
View
@@ -28,6 +28,7 @@
require_login();
}
+ $context = get_context_instance(CONTEXT_COURSE, $course->id);
if (!(course_parent_visible($course) || $course->visible) && !has_capability('moodle/course:viewhiddencourses', $context)) {
error(get_string('coursehidden'), $CFG->wwwroot .'/');
}
@@ -54,7 +55,6 @@
echo filter_text(text_to_html($course->summary),$course->id);
- $context = get_context_instance(CONTEXT_COURSE, $course->id);
if ($managerroles = get_config('', 'coursemanager')) {
$coursemanagerroles = split(',', $managerroles);
foreach ($coursemanagerroles as $roleid) {

0 comments on commit f52a0de

Please sign in to comment.