Skip to content

Commit

Permalink
Fixed a capability name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Sep 21, 2006
1 parent b32c8dd commit 09edb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/admin/block_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function get_content() {

/// View course grades (or just your own grades, same link)
if (has_capability('moodle/course:viewcoursegrades', $context) or
(has_capability('moodle/course:viewusergrades', $context) && $course->showgrades)) {
(has_capability('moodle/user:viewusergrades', $context) && $course->showgrades)) {
$this->content->items[]='<a href="'.$CFG->wwwroot.'/grade/index.php?id='.$this->instance->pageid.'">'.get_string('grades').'</a>';
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/grades.gif" alt="" />';
}
Expand Down

0 comments on commit 09edb37

Please sign in to comment.