Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
FIxed a bad capability ratepost -> rate
  • Loading branch information
moodler committed Oct 23, 2006
1 parent 9fc4804 commit 0ff7b38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/forum/rate.php
Expand Up @@ -16,7 +16,7 @@

$context = get_context_instance(CONTEXT_MODULE, $cm->id);

if (!has_capability('mod/forum:ratepost', $context)) {
if (!has_capability('mod/forum:rate', $context)) {
error('You do not have the permission to rate this post');
}

Expand Down Expand Up @@ -84,4 +84,4 @@
error("This page was not accessed correctly");
}

?>
?>

0 comments on commit 0ff7b38

Please sign in to comment.