Skip to content

Commit

Permalink
MDL-16356 Fix capability name
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Sep 15, 2008
1 parent b0f7468 commit 4579407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/lesson/grade.php
Expand Up @@ -18,7 +18,7 @@

require_login($course->id, false, $cm);

if (has_capability('mod/lesson:grade', get_context_instance(CONTEXT_MODULE, $cm->id))) {
if (has_capability('mod/lesson:edit', get_context_instance(CONTEXT_MODULE, $cm->id))) {
redirect('report.php?id='.$cm->id);
} else {
redirect('view.php?id='.$cm->id);
Expand Down

0 comments on commit 4579407

Please sign in to comment.