Browse files

Was missing context in has_capability() call. This was found in MDL-8196

  • Loading branch information...
1 parent 5c5cb3e commit 78d68eb5b202888591accbae294430606580490f mark-nielsen committed Mar 16, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/lesson/locallib.php
View
2 mod/lesson/locallib.php
@@ -284,7 +284,7 @@ function lesson_print_header($cm, $course, $lesson, $currenttab = '') {
"$navigation <a href=\"index.php?id=$course->id\" title=\"$strlessons\">$strlessons</a> -> $strname",
'', $meta, true, $button, navmenu($course, $cm));
- if (has_capability('mod/lesson:manage')) {
+ if (has_capability('mod/lesson:manage', $context)) {
print_heading_with_help(format_string($lesson->name, true), "overview", "lesson");
} else {
print_heading($lesson->name);

0 comments on commit 78d68eb

Please sign in to comment.