Permalink
Browse files

fixing constant CONTEXT_COURSE name

  • Loading branch information...
1 parent c201ac5 commit 0f2f33611fca07efc4127c46a97512e8afb94016 diml committed Dec 27, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 search/documents/label_document.php
@@ -154,7 +154,7 @@ function label_check_text_access($path, $itemtype, $this_id, $user, $group_id, $
$r = get_record('label', 'id', $this_id);
$module_context = get_record('context', 'id', $context_id);
$cm = get_record('course_modules', 'id', $module_context->instanceid);
- $course_context = get_context_instance(COURSE_CONTEXT, $r->course);
+ $course_context = get_context_instance(CONTEXT_COURSE, $r->course);
//check if englobing course is visible
if (!has_capability('moodle/course:view', $course_context)){

0 comments on commit 0f2f336

Please sign in to comment.